For file compression and decompression in the. tar format it is common to use the same command today for files in. zip format. I was really stupid enough to ignore the suffix format ...
1. For tar format filescompression: TAR–ZCVF compressed after the name of the compressed directory//TAR-ZCVF A.tar aDecompression: TAR–ZXVF the name after compression//TAR-ZXVF A.tar
2. For zip format Filescompression: Zip filename.zip filesdecompression: Unzip Filename.zipfurther understanding,Linux comes with a unzip program that can unzip the file,
The Decompression command is: Unzip Filename.zip
also provides a zip program to compress the zip file , the command iszip filename.zip files
files will be compressed to Filename.zip
after that, I notice the file suffix name, different suffix of the file decompression and compression of the command are not the same, and for this summarizes some other formats of file decompression methods:
1, *.tar with TAR–XVF decompression
2, *.gz with gzip-d or gunzip decompression
3, *. tar.gz and *.tgz with TAR–XZF decompression
4, *.bz2 with bzip2-d or with bunzip2 decompression
5, *.tar.bz2 with TAR–XJF decompression
6, *. Z Extract with Uncompress
7, *.tar. Z Extract with Tar–xzf
8, *.rar with Unrar e decompression
9, *.zip with unzip decompression
Linux compression, unzip files