This does not look like a tar archive

解压gz出现异常:This does not look like a tar archive。

# tar -zxvf nohub.log.2020-03-21.0.gz

tar: This does not look like a tar archive

tar: Skipping to next header

tar: Exiting with failure status due to previous errors

针对不同类型的文件使用正确的解压命令:

gzip:

gzip -d nohub.log.2020-03-21.0.gz

tar:

tar -zxvf nohub.log.2020-03-21.0.gz

zip:

unzip xxx.zip

或者

jar -xvf xxx.zip