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



Copyright 2011 http://www.1a-centosserver.com All Rights Reserved

All trademarks are the property of their respective owners.

Contact Us | Terms of Use | Privacy Policy