Linux使用tar命令解压压缩文件报错tar: Exiting with failure status due to previous errors

报错内容

tar -zxvf aaa.txt.gz
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Exiting with failure status due to previous errors

排查过程

查看文件属性
file aaa.txt.gz
aaa.txt.gz: gzip compressed data, from FAT filesystem (MS-DOS, OS/2, NT)

解决方案

使用gzip -d命令解压
gzip -d aaa.txt.gz
完美解决,压缩文件被解压成功。

你可能感兴趣的:(Linux,Debug心得,linux,shell)