Showing posts with label zcat. Show all posts
Showing posts with label zcat. Show all posts

Friday, October 2, 2009

gunzip, uncompress file.gz to another/different directory

Ariel asked me to help him in unzipping his file.gz which is on a directory/disk that has no space to unzip, he wanted unzip to another directory/disk which had enough space to house unzipped files.

initially i was checking gunzip manual but didn't found any option to do this kind of task, though at freenode someone told me to use zcat instead of gunzip! e.g.


$zcat filename.gz > /path/to/unzipped/file

so sometimes instead of reading command's manual we need to check command's capabilities ;)

cheers