Common Compression Instructions on Linux and Unix
Below we will list a few common compressed file extensions. *.Z compress program compressed files; *.zip Files compressed by the zip program; *.gz files compressed by gzip program; *.bz2 The file compressed by the bzip2 program; *.xz xz program compressed file; *.tar The data packaged by the tar program has not been compressed; *.tar.gz tar program packaged files, which are compressed by gzip *.tar.bz2 tar program packaged files, which are compressed by bzip2 *.tar.xz tar program packaged files, which are compressed by xz 1. gzip, zcat/zmore/zless/zgrep Currently gzip can unzip files compressed by compress, zip and gzip. By default, the original file will be compressed into a .gz file name, and the original file will no longer exist . Compress and prints the compression ratio: $ gzip -v service services: 79.7% -- replaced with services.gz Decompress: $ gzip -d service.gz Compress with the best compression ratio and k...