Home > linux > gunzip to different directory

gunzip to different directory

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
Advertisements
Categories: linux Tags: ,
  1. February 10, 2015 at 2:52

    Rad blog post buddy. Appreciate your link.

    Like

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: