tar: no gzip/bzip2/xz magic 错误解决
来源:互联网 发布:linux 查看重启动原因 编辑:程序博客网 时间:2024/06/05 08:52
今天压缩了一个rootfs准备传到网上,结果解压时出现错误
root@localhost ~]# tar -zxvf vnc-4.0-x86_linux.tar.gz
tar: no gzip/bzip2/xz magic
研究了一番tar命令
参数:
-c :create 建立压缩档案的参数;
-x : 解压缩压缩档案的参数;
-z : 是否需要用gzip压缩;
-v: 压缩的过程中显示档案;
-f: 置顶文档名,在f后面立即接文件名,不能再加参数
估计是自己使用tar -cf rootfs.tar.gz rootfs不正确,重新压缩:
tar -zcvf rootfs.tgz rootfs
重新解压:
tar -xcvf rootfs.tgz -C /mnt/
OK!
0 0
- tar: no gzip/bzip2/xz magic 错误解决
- tar,bzip2,gzip,xz
- TAR,GZIP, BZIP2, XZ对比
- zip bzip2 gzip xz tar文件解压缩
- TAR,GZIP, BZIP2, XZ tar.xz zip 7z汇总
- gzip,bzip2, xz , zip ,unzip ,解压,压缩;tar打包,解压。
- gzip,bzip2,xz压缩工具详解
- tar gzip bzip2 zip
- tar gzip bzip2
- gzip,tar,bzip,xz
- Linux精讲——打包和压缩tar、gzip、bzip2、xz、zip
- Linux系统文件的网络传输、打包tar、压缩zip、gzip、bzip2、xz、gz、bz2
- linux tar gzip bzip2 compress
- 解压缩命令:tar,gzip,bzip2
- gzip, gunzip, bzip2, bunzip2, xz, unxz
- 归档与压缩命令的总结 -- gzip, gunzip, zcat, bzip2, bunzip2, bzcat, xz, unxz, xzcat, zip, unzip, tar
- tar gzip bzip2 常用用法总结
- Linux--打包&压缩 tar,gzip,bzip2
- Git教程
- 内存队列批量导入日志到搜索引擎
- Android-Mac电脑如何进行APK反编译-使用apktool、jd-gui
- HDU 4089 Activation [有环的概率DP]
- HTML分页代码
- tar: no gzip/bzip2/xz magic 错误解决
- 前端的一些设计
- 去掉UISearchBar边框
- 一些英文词的标准缩写
- pyzmq提升REQ/REP模式可靠性
- html5系列:form 2.0 新结构
- Tracking Database Feature Usage (DBA_FEATURE_USAGE_STATISTICS)
- (四十四)编程练习
- 不同级数复杂度的计算