Linux gunzip command
Linux Command大全
The Linux gunzip command is used to decompress files.
gunzip is a widely used decompression program that is used to decompress files compressed with gzip. These compressed files are preset with the file extension .gz. In fact, gunzip is a hard link to gzip, so whether it is compression or decompression, it can be completed separately with the gzip command.
Syntax
Parameters:
gunzip [-acfhlLnNqrtvV][-s <compressed string>][file...] or gunzip [-acfhlLnNqrtvV][-s <compressed file extension>][directory]
- -a or--ascii to use ASCII text mode.
- -c or--stdout or--to-stdout to output the decompressed files to the standard output device.
- -f or-force to force to decompress the compressed file without considering the existence of file names or hard links and whether the file is a symbolic link.
- -h or--help to provide online help.
- -k or--keep to retain the original compressed file.
- -l or--list to list the relevant information of the compressed file.
- -L or--license to display version and copyright information.
- -n or--no-name to ignore and not process the original file name and timestamp from the compressed file during decompression.
- -N or--name to restore the original file name and timestamp to the decompressed file during decompression.
- -q or--quiet to not display warning information.
- -r or--recursive to recursively process all files and subdirectories in the specified directory.
- -S<compressed file extension> or--suffix<compressed file extension> to change the compressed file extension.
- -t or--test to test if the compressed file is correct.
- -v or--verbose to display the execution process of instructions.
- -V or--version to display version information.
Online Examples
<p>Unzip File
</p>
<pre>
# gunzip ab.gz
Linux Command大全