tar命令解压.zip文件出错:gzip: stdin has more than one entry--rest ignored

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u013121305/article/details/49669995

今天用 tar 命令解压 .zip 文件报错:

gzip: stdin has more than one entry--rest ignored
tar: Child returned status 2
tar: Error is not recoverable: exiting now
     上网查找发现是因为tar命令调用了gzip,而gzip并不是可以解压所有文件的,有如下一段话:

Files created by zip can be uncompressed by gzip only if they have a single member compressed with the 'deflation' method.

后来用以下命令解决:(unzip命令,-d指定输出目录)

unzip xxxxxx.zip -d /home/acer/Desktop/

展开阅读全文

没有更多推荐了,返回首页