- Forums
- Tutorial and Guides
- How To Uncompress Open tar.gz files
This Page Contains information about How To Uncompress Open tar.gz files By webmaster in category Tutorial and Guides with 2 Replies. [611], Last Updated: Mon Jun 24, 2024
webmaster
Fri Feb 29, 2008
2 Comments
464 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:
Code:tar xvf filename.tar
If the tarball has also been gzipped (compressed), you can use the following command:
Code:tar xvfz filename.tar.gz
If you only want certain directories from the tarball, do this:
Code: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:
Code:tar yxf filename.tar.bz2