Last modified: 
Thursday, April 9th, 2015

Unzip a gz without deleting the source file

If you want to gunzip a .gz file, but want the target .gz file itself to remain intact after it is decompressed, you use the following:

gunzip -c in_file.gz > out_file

The operator of this site makes no claims, promises, or guarantees of the accuracy, completeness, originality, uniqueness, or even general adequacy of the contents herein and expressly disclaims liability for errors and omissions in the contents of this website.