CentOS Linux Server Guide


File decompress, extraction using gunzip in CentOS Linux

Gunzip

  • Gunzip, is the most common command used to extract a gzip file in Linux

Command name

gunzip

 

Synopsis

gunzip [option] filename.gz > extracted_file_name

 

Option

-v  show compression rate

-r   decompress, extract recursively of given file and all its subfolders

-c   extract the compress file and kept gz file undelete

 

Note

Upon gunzip usefully complete file extraction, the original gz document/file will be removed. To keep a copy of your gz file, it is always recommend to use option -c  together and file redirection >

 

Example

gunzip -c file1.gz > file1

 

 

Back to Home


Creative Commons License
CentOS Server Guide by http://www.1a-centosserver.com is licensed under  Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. All trademarks are the property of their respective owners.

 

Contact Us  | Privacy Policy