linux压缩与解压

File Type 解压 压缩
.tar tar zxvf FileName.tar tar czvf FileName.tar DirName(打包)
.gz gzip -d FileName.gz gzip FileName
.tar.gz 和 .tgz tar zxvf FileName.tar.gz tar zcvf FileName.tar.gz DirName
.bz2 bzip2 -d FileName.bz2 bzip2 -z FileName
.tar.bz2 tar jxvf FileName.tar.bz2 tar jcvf FileName.tar.bz2 DirName
.Z uncompress FileName.Z compress FileName
.tar.Z tar Zxvf FileName.tar.Z tar Zcvf FileName.tar.Z DirName
.zip unzip FileName.zip zip FileName.zip DirName
linux压缩与解压