. TarUnpacking: Tar xvf filename.tar pack: Tar cvf filename.tar DirName (Note: Tar is packaged, not compressed!) )———————————————
. GZDecompression 1:gunzip filename.gz Decompression 2:gzip-d filename.gz compression: gzip FileName
. tar.gz and. tgzDecompression: Tar zxvf FileName.tar.gz compression: Tar zcvf FileName.tar.gz DirName ———————————————
. bz2Decompression 1:bzip2-d filename.bz2 Decompression 2:bunzip2 filename.bz2 compression: Bzip2-z FileName
. tar.bz2Decompression: Tar jxvf FileName.tar.bz2 compression: Tar jcvf FileName.tar.bz2 DirName ———————————————
. BZDecompression 1:bzip2-d filename.bz Decompression 2:bunzip2 filename.bz compression: Unknown
. Tar.bzDecompression: Tar jxvf FileName.tar.bz compression: Unknown ———————————————
. ZDecompression: uncompress filename.z compression: Compress FileName
. Tar. ZDecompression: Tar zxvf filename.tar.z compression: Tar zcvf filename.tar.z DirName ———————————————
. zipDecompression: Unzip Filename.zip compression: Zip filename.zip DirName ———————————————
. rarDecompression: rar x filename.rar compression: rar a filename.rar DirName ———————————————
. LhaDecompression: lha-e Filename.lha compression: lha-a Filename.lha FileName ———————————————
. RPMUnpacking: Rpm2cpio filename.rpm | Cpio-div ———————————————
. DebUnpacking: ar p filename.deb data.tar.gz | Tar zxf-———————————————
. Tar. tgz. tar.gz. Tar. Z. tar.bz. tar.bz2. zip. cpio. Arj. rar. Ace. Lha. Lzh. Lzx. Lzs., Arc. SDA. SFX. Lnx. Zoo. cab. Kar. cpt. P it. Sit. SeaDecompression: Sex x filename.* compression: Sex A filename.* filenamesex just call the relevant program, itself and no compression, decompression function, please note! ———————————————
gzipGzip is a frequently used Linux system command to compress and decompress files, which is both convenient and useful. Syntax: gzip [option] File name-C writes the output to standard output and retains the original file;-d extracts the compressed file;-L for each compressed file, the following fields are displayed: The size of the compressed file, the size of the uncompressed file, the compression ratio, the name of the uncompressed file;-R Recursively finds the specified directory and compresses all of its files or is decompressed;-t test to check whether the compressed file is complete;-V for each compression and decompression of the file, display the file name and compression ratio;-num adjusts the speed of compression with the specified number num, 1 or--fast Represents the fastest compression method (low compression ratio), 9 or--best for the slowest compression method (high compression ratio), and the system default value is 6. Instruction Example: gzip *% compresses each file in the current directory into a. gz file GZIP-DV *% unzip each compressed file in the current directory, and lists detailed information gzip-l *% details the information for each compressed file in Example 1, and does not understand how to press gzip usr. tar% compress the tar backup file Usr.tar, at which time the compressed file has a. tar.gz extension. Translated from: http://www.cnblogs.com/eoiioe/archive/2008/09/20/1294681.html