Compression format:
GZ, bz2, XZ, zip, Z.
Gzip:
Compress the file. The source file is deleted when the compression is complete.
Gzip/path/to/somefile.
-D: Unzip the file.
-num:1-9, specify the compression ratio.
Gunzip
Unzip the file. The compressed file is deleted when the decompression is complete.
Gunzip/path/to/somefile.gz.
Zcat
View the contents of a text file compressed by gzip in the case of decompression.
BZIP2:
Compress the file. Use the format with gzip approximation.
-D: Unzip the file.
-num:1-9, specify the compression ratio.
-K: Preserves source files while compressing.
BUNZIP2:
Unzip the file.
Bzcat:
View the contents of a text file compressed by bzip2 in the case of decompression.
Xz
Compress the file.
-D: Unzip the file.
-num:1-9, specify the compression ratio.
-K: Preserves source files while compressing.
UNXZ:
Unzip the file.
Xzcat:
View the contents of a text file compressed by Xzcat in the case of decompression.
Xzdec:
Unzip.
Zip:
Compress multiple files. Do not delete source files after compression
Zip Filename.zip FILELIST
Unzip
Unzip compressed files by Zip.
Tar
Archive file. Archive only, do not compress, do not delete source files.
-C: Create an archive file.
-F: The archive file for the operation.
-X: Restores the archive.
--xattrs: Retains its extended attribute information when archiving.
-T: Do not expand the archive, directly investigate what files are archived.
-Z: Call gzip archive and compress.
-j: Call bzip2 Archive and compress.
-j: Call XZ Archive and compress.
Cpio
Archive file.
Linux file compression and archiving