How To Install Tar Files

RegisterLogin
How To Install Tar Files
Post Description: 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
Tags: linux, tar, command, shell, extract, tarball, files, installation
This Post Was Posted On Feb 27, 2010 By Webune Support #3171
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

Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
©2011 Webune Forums - Sun Dec 18, 2011 7:44 pm
Powered by: Webune Forums V3