It depends on which compression you use for your compressed files:
gzip, compressed file name: Zip or GZ, decompression command: Unzip
BZIP2, compressed file name: BZ, decompression command; bzip2-d
The above two are the most commonly used compression methods, generally under Linux can be packaged and compressed (or decompressed) through the tar command. For example:
TAR-ZCVF file file.tar.gz is packaged and compressed into gzip format, where the-C command is to create a tar package, the-z parameter is specified to compress into gzip format;
TAR-ZXVF file.tar.gz Unpacking command, where-X is the unpacking command,-z specifies that the uncompressed format is gzip
TAR-JCVF file file.tar.bz2 is packaged and compressed into bzip2 format, where-C is the creation of the tar package, and the-J parameter is compressed into bzip2 format;
TAR-JXVF file.tar.gz The Unpacking command, where-X is the unpacking command,-J specifies that the decompression format is bzip2
Three kinds of commands for extracting files under Linux?