This article is a mirror article of machine translation, please click here to jump to the original article.

View: 11093|Reply: 0

[linux] How Linux unzips .gz files

[Copy link]
Posted on 3/14/2015 12:13:03 PM | | | |


xxxx.tar.gz file uses tar with zxvf parameter and can be decompressed at once. XXXX is the file name. For example:

$tar zxvf xxxx.tar.gz


gzip -d

Syntax: gzip [-acdfhlLnNqrtvV][-S <压缩字尾字符串>][-<压缩效率>][-best/fast][file...] or gzip [-acdfhlLnNqrtvV][-S <压缩字尾字符串>]<压缩效率>[-][--best/fast][directory]

Note: gzip is a widely used compression program, and after the file is compressed, the ".gz" extension will be added to its name.

Parameters:
-a or --ascii uses the ASCII text pattern.
-c or --stdout or --to-stdout outputs the compressed file to a standard output device without changing the original file.
-d or --decompress or ----uncompress to unzip the file.
-f or --force to force the file. Regardless of the file name or the presence of a hard connection and whether the file is a symbolic connection.
-h or --help help online.
-l or --list lists information about the compressed file.
-L or --license to display the version and copyright information.
-n or --no-name When compressing a file, the original file name and timestamp are not saved.
-N or --name save the original file name and timestamp when compressing the file.
-q or --quiet do not display a warning message.
-r or --recursive recursive processing will process all files and subdirectories in the specified directory together.
-S <压缩字尾字符串>or ----suffix<压缩字尾字符串> to change the compressed suffix string.
-t or --test to test whether the compressed file is correct.
-v or --verbose shows the instruction execution process.
-V or --version displays version information.
-<压缩效率> The compression efficiency is a value between 1-9, with a preset value of "6", and the higher the value, the higher the compression efficiency.
--best This parameter has the same effect as specifying the "-9" parameter.
--fast This parameter has the same effect as specifying the "-1" parameter.






Previous:How to add a dot in front of the folder name
Next:There is a trick to automatically log in to the Win2003 system without a password
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com