The Linux Newbie Guide  ⇒    Fundamentals     Advanced     Supplement   Command Index   ENG⇒中
All rights reserved, please indicate the source when citing
  

gunzip Decompresses gz Files 



The gunzip (GNU unzip) command is used to decompress files compressed with the gzip format (".gz" files). Its functionality is similar to using gzip -d. Additionally, gunzip can also directly decompress files compressed with the compress format (".Z" files).
The basic usage of thegunzip command is unzip [OPTIONS] FILE(S).

Some common options for gunzip are:


Example:
$ gunzip * ← Decompresses all ".gz" files in the working directory
$ gunzip file.Z ← Decompresses the ".Z" file.

For more gunzip examples, refer to the provided link.