1, Gzip/gunzip
gzip [OPTION] ... FILE ...
-D: Uncompressed, equivalent to Gunzip
-C: Outputs the result to standard output
-#:1-9, specifying the compression ratio
Zcat: View text file contents without explicit expansion
2, Bzip2/bunzip2/bzcat
bzip2 [OPTION] ... FILE ...
-k:keep, keep the original file
-D: Unzip
-#:1-9, compression ratio, default = 6
Bzcat: View text file contents without explicit expansion
3, Xz/unxz/xzcat
bzip2 [OPTION] ... FILE ...
-k:keep, keep the original file
-D: Unzip
-#:1-9, compression ratio, default = 6
Xzcat: View text file contents without explicit expansion
4. Tar
tar [OPTION] ...
(1) Create an archive
Tar-c-f/path/to/somefile.tar FILE ...
Tar-cf/path/to/somefile.tar FILE ...
(2) View the list of files in the archive file
Tar-t-f/path/to/somefile.tar
(3) Expand archive
Tar-x-f/path/to/somefile.tar
Tar-x-f/path/to/somefile.tar-c/path/to/dir
Combined with compression tool implementation: Archive and Compress
-J:BZIP2,-z:gzip,-J:XZ
This article is from the "Ricky Technology Blog" blog, make sure to keep this source http://r1cky.blog.51cto.com/10646564/1773858
Linux compression, decompression, and archiving tools