- Forums
- Tutorial And Guides
- How To Uncompress And Open All The Files In A Tar.gz File
This Page Contains information about How To Uncompress And Open All The Files In A Tar.gz File By webmaster in category Tutorial And Guides with 14 Replies. [1397], Last Updated: Sat May 18, 2024
webmaster
Fri Jul 21, 2006
14 Comments
74426 Visits
tar is a compression technology used to create a Tape ARchive. The resulting file is known as a tarball.
If you have Window, this is the same as a Zip file. You use winzip to compress and uncompress .zip files.So its the same idea. To uncompress the files (or to get the files out of a tarball), you can use the following commands in linux.
[
tar xvf filename.tar
If the tarball has also been gzipped (compressed), you can use the following command:
tar xvfz filename.tar.gz
If you only want certain directories from the tarball, do this:
tar xvzf filename.tar.gz */dir.you.want/*
If you have a .tar.bz2 file, then you need bzip2 installed (/usr/ports/archivers/bzip2), and you issue this command:
tar yxf filename.tar.bz2