Saturday, March 10, 2012

How to Unzip a file in Ubuntu

The three type of zipped files I used for now are .tgz, .tar.gz, and .bz2
below are the command and options to how to unzip them

$ tar -zxvf filename.tgz
$ tar -zxvf filename.tar.gz
$ tar -jxvf filename.tar.bz2




You can type tar --help in the command line and you will get all the options and their usage, here are the options description I used above:
-z, --gzip, --gunzip, --ungzip   filter the archive through gzip
-j, --bzip2                filter the archive through bzip2
-x, --extract, --get       extract files from an archive
-v, --verbose              verbosely list files processed

-f, --file=ARCHIVE         use archive file or device ARCHIVE

Hope this blog will find you and help ease your day a little, 

No comments:

Post a Comment