How to Uncompress Files in Linux

Posted by Johan Cyprich on 25 Apr 2008 | Tagged as: Tech Tips

Linux users frequently have to uncompress .tar, .gzip, or .zip files. There are GUI utilities that can do this, but there may be instances where you have to do this from a Linux command shell. The following commands covers the most used compression formats for Linux.

Uncompressing a .tar File

tar -xvf file.tar

Uncompressing a .gz File

gunzip file.gz

Uncompressing a .zip File

unzip file.zip

Uncompressing a .tar.gz File

gunzip file.tar.gz
tar -xvf file.tar

Or you can uncompress both formats in one command:

tar -zxvf file.tar.gz


Related posts:
    Proprietary Zip Compression
    Installing Joomla on 1&1
    Hidden Visual Studio 2005 Image Library
    Managing Linux with Webmin

Share this post:

del.icio.us:How to Uncompress Files in Linux digg:How to Uncompress Files in Linux spurl:How to Uncompress Files in Linux wists:How to Uncompress Files in Linux simpy:How to Uncompress Files in Linux newsvine:How to Uncompress Files in Linux blinklist:How to Uncompress Files in Linux furl:How to Uncompress Files in Linux reddit:How to Uncompress Files in Linux fark:How to Uncompress Files in Linux blogmarks:How to Uncompress Files in Linux Y!:How to Uncompress Files in Linux smarking:How to Uncompress Files in Linux magnolia:How to Uncompress Files in Linux segnalo:How to Uncompress Files in Linux gifttagging:How to Uncompress Files in Linux

Follow Me:

Did you find this post interesting and useful? You can keep up to date on this blog by subscribing to my RSS feed, or you can have new posts sent to you by e-mail. You can also see what I'm up to by following me on Twitter or Facebook.


2 Responses to “How to Uncompress Files in Linux”

  1. on 10 May 2008 at 6:01 pm 1.Robert MacEwan said …

    Actually, these days we really don’t have to use the command line. Mostly you just right click the file and select unzip.

    Ubuntu Linux is amazing when you look at just how much it has improved over the few years.

  2. on 13 May 2008 at 2:11 am 2.Johan Cyprich said …

    You don’t need to use the command line when your on a Linux machine, but many times I’m logged in to web host through an SSH command line client so I need to type these commands to get things done. :)

    It would be nice to have a desktop interface when logged in to web servers.

Trackback This Post | Subscribe to the comments through RSS Feed

Leave a Reply