Compress, unzip command
Compression format: gz,bz2,xz,zip,z
Compression algorithm: Different algorithm, compression ratio will also be different
Gzip:.gz The source file is deleted when the compression is complete
-D: Unzip
-#:1-9 set compression ratio, default is 6
Gunzip: The source file is deleted after decompression
Zcat: Temporarily view the contents of compressed files in the case of decompression
BZIP2:.BZ2 has a greater compression ratio than gzip, using a format approximation
-D:
-#:1-9 Default 6
-K: Preserve source files while compressing
BUNZIP2: Extracting Files
Xz:.xz Greater Compression ratio
-D:
-#:
-K:
UNXZ: Decompression
Zip: Do not delete source files after compression
Zip FILENAME. ZIP FILE1 FILE2 ....
Unzip: Decompression
Archive: Archiving, archiving by itself does not imply compression
Tar: Archive-only uncompressed
-C: Create an archive file
-F File.tar: Archived files for operations
-X: Expand Archive
--xattrs: Preserves extended attribute information for files when archiving
-T: Do not expand the archive to directly see which files are archived
-ZCF: Archive and invoke gzip compression
-ZXF: Call gzip to unzip and expand archive
-jcf:bzip2
-JXF:
-jcf:xz
-JXF:
Cpio: Archive Tool
10 compression, archiving