Compact format: GZ, bz2, XZ, zip, Z
Compression algorithm: Different algorithm, compression ratio will also be different
Gzip:.gz
Gzip/path: Deleting source files after compression
-D: Unzip
-# 1-9: Specify compression ratio
Gunzip: The original file will be deleted when the decompression is complete
Zcat: Without pressure view the contents of a text file
bzip2:.bz2
Greater compression ratio than gzip
-D Decompression
-K Keep the original file when compressing
BUNZIP2: Unzip
Bzcat: Without pressure view the contents of a text file
Xz:.xz
Usage with gzip, bzip2
Unxz
Xzdec
Xzcat
Zip: Can compress the directory
Format: Zip compressed file name to be compressed
Unzip: Unzip
Tar: Archive tool
-C Create an archive file
-F Filename.tar Operation archive file
-X Expand Archive
--xattrs Preserve extended properties of files when archiving
-T do not expand archive to see which files are archived
-ZCVF Archive and Compress
-ZXVF Unzip and expand the archive
Cpio: Archive Tool
This article is from the "ngames" blog, make sure to keep this source http://ngames.blog.51cto.com/3187187/1547864
Linux compression, archive commands