Skip to content

Compress/Decompress gz/bz2/xz file with tar command

.tar.gz

压缩:tar zcf FILE.tar.gz FILEDIR
解压:tar zxf FILE.tar.gz

.tar.bz2

压缩:tar jcf FILE.tar.bz2 FILEDIR
解压:tar jxf FILE.tar.bz2

.tar.xz

压缩:tar Jcf FILE.tar.xz FILEDIR
解压:tar Jxf FILE.tar.xz