gz decompress

The method of compressing and retaining the source file in Linux:
gzip –c filename > filename.gz
The method of decompressing and retaining the source file in Linux:
gunzip –c filename.gz > filename
Usage of gunzip 1. The role of the gunzip command is to decompress the file, and the use permission is all user. 2. Format gunzip [-acfhlLnNqrtvV][-s ][file...] or gunzip [-acfhlLnNqrtvV][-s ][directory] 3. Main parameter -a or --ascii: Use ASCII text mode. -c or --stdout or --to-stdout: Output the decompressed file to the standard output device. -f or -force: Unzip the compressed file forcibly, regardless of whether the file name or hardlink exists, and whether the file is a symbolic link. -h or --help: Online help. -l or --list: List information about compressed files. -L or --license: Display version and copyright information. -n or --no-name: When decompressing, if the compressed file contains the original file name and timestamp, it will be ignored and not processed. -N or --name: When decompressing, if the compressed file contains the original file name and time stamp, it will be saved back to the decompressed file. -q or --quiet: Do not display warning messages. -r or --recursive: Recursive processing, processing all files and subdirectories in the specified directory together. -S or --suffix: Change the compressed suffix string.
  
















-t or --test: Test that the compressed file is correct.
-v or --verbose: Display the command execution process.
-V or --version: Display version information.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327069813&siteId=291194637