- Forums
- Linux Hosting
- How To Install Tar Files
this short tutorial will give you an explanation as to how you can untar files with .tar files with .tar.gz files so you can extract and install your scripts in linux using the linux shell commands terminal console [1345], Last Updated: Mon Jun 24, 2024
Webune Support
Sat Feb 27, 2010
0 Comments
688 Visits
one of the most common commands in linux is the tar command
lets say you just downloaded a file called samba-3.1.4.tar.gz
ok, so how do you extract all the files in the samba-3.1.4.tar.gz file?
easy
for example, if you downloaded samba-3.1.4.tar.gz in your home directory: /home/webune/scripts/samba-3.1.4.tar.gz
so first lets go to the directory where the tar file is located with this command:
SHELL COMMAND:
cd /home/webune/scripts/
now you can untar the file samba-3.1.4.tar.gz
SHELL COMMAND:
tar xvfz samba-3.1.4.tar.gz
ok, so what do those options mean?
x = extract
v = verbose
z = gunzip
f = file
so as soon as you start to send this command you will see all the files start to extract
did you know that you can also use the same command like this:
SHELL COMMAND:
tar --extract --verbose --gunzip --file samba-3.1.4.tar.gz