我输入此命令 su -c busybox tar -xvf /storage/emulated/0/Download/andrax.r5-build5.tar.xz -C /data/data/com.thecrackertechnology.andrax/ANDRAX/
并且出现这样的错误 tar:invalid magic tar:short read
自动检测压缩格式是 GNU 的一项功能。
对于 BusyBox 和其他tar,明确指定格式 ( busybox tar --help):
-Z (De)compress using compress
-z (De)compress using gzip
-J (De)compress using xz
-j (De)compress using bzip2
-a (De)compress using lzma
Run Code Online (Sandbox Code Playgroud)
在你的情况下:
busybox tar -xJvf file.tar.xz
Run Code Online (Sandbox Code Playgroud)
(请注意,如果将其传递给su -c,则需要引用整个命令才能将其作为单个参数传递)
| 归档时间: |
|
| 查看次数: |
15603 次 |
| 最近记录: |