There are 5 types of compressed package formats common to Linux: Zip tar.gz tar.bz2 tar.xz tar. Z
Where tar is a packaging format, and the suffixes such as GZ and bz2 are the means of compression: gzip and BZIP2
Unzip the filename. zip :
Unzip Filename.zip
Unzip the filename. tar.gz :
TAR-XZVF filename.tar.gz
Where ZXVF meanings are as follows
X:exTract Decompression
Z:gzIP compression format
V: verbose details
F: File (File=archieve) file
Unzip the filename. tar.bz2 :
TAR-JXVF filename.tar.bz2
J:BZIP2 compression format
Other options have the same meaning as tar.gz decompression
Unzip the filename. TAR.XZ :
TAR-JXVF FILENAME.TAR.XZ
Note J Caps
FileName. tar. Extraction of Z:
TAR-ZXVF Filename.tar.z
Note Z Caps
A detailed command of tar can be
Tar--help
In fact, starting from the 1.15 version of Tar can automatically recognize the compressed format, so do not need to artificially distinguish the compression format can be correctly extracted
TAR-XVF FILENAME.TAR.GZTAR-XVF FILENAME.TAR.BZ2TAR-XVF FILENAME.TAR.XZTAR-XVF filename.tar.z
The unzip command under Linux