Pages

How to Extract or Compress .gz file

 How to view file content
      gunzip -c file-name.gz 
How to Extract file content.(Original .gz file will be replace)
      gunzip file-name.gz 
How to Extract file content to another file.
Noted that you can use different file name or extension (Original .gz file are keep intact)
      gunzip -c file-name.gz > file-name.txt

How to Compress file-name.txt to file-name.txt.gz in the current directory
      gzip file-name.txt

No comments:

Post a Comment

You might also like:

Popular Posts