Tuesday, 15 April 2014

How to untar/extract a tar.bz2/tar/tar.gz file

To untar/extract a file with different type of extensions , we need to use slightly different options:

1) .tar.bz2
            tar -jxvf xyz.tar.bz2
2) .tar
           tar -xf xyz.tar
3) .tar.gz
           tar -xzvf archive.tar.gz
4) .tar.bz
            tar -xzvf archive.tar.bz


No comments:

Post a comment


Related Posts Plugin for WordPress, Blogger...