Archive Compression Command
(1) Gzip/gunzip compression and decompression (zip file ending in gz)
GZIP–[1...9]TRV file
Gunzip file
(2) Zip/unzip
Compress the ZIP package and unzip the compressed file at the end of the. zip, without adding any parameters
Zip option Compress file name
-R recursive compression. All files and subdirectories under the specified directory are all compressed
Unzip option compressed file name
-O overwrites files that already exist and does not require user confirmation
-D directory name unzip the compressed file to the specified directory
(3) Tar file packaging
Tar parameter destination file source directory or file
Main parameters:
-C Create a new document
-X extracting archive files
-F file name: Using an archive file
-Z Unzip with gzip
-V Verbose output mode
Note: If you do not add parameter-Z is packaged, if you add the parameter-Z is the decompression
Example:
Tar zcvf Test.tar test compression
Tar zxvf Test.tar Decompression
Linux Archive Compression command