There are so many ways to extract zip or tar.gz or tar.bz2. You can use GUI or command line. In this tutorial, I would like to show you how to extract compressed files using command line.

Extract zip file:

unzip file_name.zip

Extract tar.gz file:

tar -xzf file_name.tar.gz

or

tar -xvzf file_name.tar.gz

Extract tar.bz2 file:

tar -xjf file_name.tar.bz2

or

tar -xvjf file_name.tar.bz2

Notice in tar command, there is -v parameter. It tells the application to show the extracted files (verbose).

Those are the standard way to extract. If you need more functionality, just use man command.

man unzip
man tar

Related posts:

  1. Avoid Direct Download

Tags: , ,

3 Responses to “Extract zip, tar.gz, tar.bz2”

  1. meekaaeel muhammad
    March 4th, 2011 at 11:59 am

    what I want to know is how to uncompress a file that has a (tar.gz.bz2) ending because when I just put in the tar.gz part without the bz2, I get a particle file opened.

  2. Thank you for the info. Another advanced tool of extracting zip files is here http://opentarfile.com

  3. THX man…

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>