描述:用tar 解压 lgpbenchmark-master.zip ,报错
原因: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 指定输出目录
将压缩文件text.zip在当前目录下解压缩 unzip test.zip
将压缩文件text.zip在指定目录/tmp下解压缩,如果已有相同的文件存在,要求unzip命令不覆盖原先的文件 unzip -n test.zip -d /tmp
查看压缩文件目录,但不解压 unzip -v test.zip
将压缩文件test.zip在指定目录/tmp下解压缩,如果已有相同的文件存在,要求unzip命令覆盖原先的文件 unzip -o test.zip -d tmp/
参考:https://www.jianshu.com/p/cc9286378243