How to open a tar file in Unix or Linux
How to open or Untar a “tar.gz” file in Linux or Unix:
The following tutorial assumes the name of your file is yourfile.tar.gz Replace with your actual filename.
- From the terminal, change to the directory where yourfile.tar.gz has been downloaded.
- Type tar -zxvf yourfile.tar.gz to extract the file to the current directory.
You can specify a different directory to extract to using -C parameter and a path to the directory as follows:
Example: tar -C /myfolder -zxvf yourfile.tar.gz
How to open or Untar a “tar” file in Linux or Unix:
- From the terminal, change to the directory where yourfile.tar has been downloaded.
- Type tar -zxvf yourfile.tar to extract the file to the current directory.
- Or tar -C /myfolder -zxvf yourfile.tar to extract to another directory.
Enjoy Linux Experience.
Follow us on Twitter and Facebook for latest updates and tutorials/How to guides.










