美文网首页
tar命令解压缩出错

tar命令解压缩出错

作者: 皮卡丘进阶 | 来源:发表于2017-11-20 17:08 被阅读0次

[root@zhoucentos share1]# tar zxvf otp_src_19.1.tar.gz

gzip: stdin: not in gzip format

tar: Child returned status 1

tar: Error is not recoverable: exiting now

原因是这个压缩包没有用gzip格式压缩,所以不用加z指令

[Sun@localhost Downloads]$ tar xvf otp_src_19.1.tar.gz

这样就可以了

解决方法二:

1:把下载下来的文件重命名: mv otp_src_19.1.tar.gz otp_src_19.1.tar

2:再执行解压命令:tar zxvf otp_src_19.1.tar

相关文章

网友评论

      本文标题:tar命令解压缩出错

      本文链接:https://www.haomeiwen.com/subject/yjovvxtx.html