Archive

Posts Tagged ‘gunzip’

gunzip to different directory

March 17, 2010 1 comment

I need to gunzip a file.gz to a different directory because it’s a huge file and I have no enough disk space. So, I need to uncompress to another partition. This partition hasn’t enough disk space to allocate the compressed and uncompressed files, so I need to redirect the output to another directory.

I’ve been checking man gunzip but found nothing.

I’ve found this post (thanks Nayyar) with a nice solution:

http://nayyares.blogspot.com/2009/10/gunzip-uncompress-filegz-to.html

The solution, as explained in the link above, is:

$ zcat filename.gz > /path/to/unzipped/file
Categories: linux Tags: ,