不压缩方式压缩的文件需要不同的命令来解压缩,下面是Linux的各种文件解压命令。
对于.tar结尾的文件:
- tar -xf
对于.gz结尾的文件 :
- gzip -d all.gz
- gunzip all.gz
对于.tgz或.tar.gz结尾的文件 :
- tar -xzf all.tar.gz
- tar -xzf all.tgz
对于.bz2结尾的文件 :
- bzip2 -d all.bz2
- bunzip2 all.bz2
对于tar.bz2结尾的文件
- tar -xjf all.tar.bz2
对于.Z结尾的文件
- uncompress all.Z
对于.tar.Z结尾的文件
- tar -xZf all.tar.z
对于.tar.xz结尾的文件
- xz -d ***.tar.xz
- tar -xvf ***.tar