Web Hosting Talk







View Full Version : tar.gz?


matt2kjones
07-24-2002, 11:48 AM
hi im new to linux, and am just wondering how do you open .tar.gz files?

citrus
07-24-2002, 11:54 AM
gunzip -c FILENAME.tar.gz | tar xf -

should work ;)

Once that is finished type: "ls" (without quotations) to list the contents of the present directory you are in.

Then type "cd FILENAME" (without quotations) to change to the newly created directory. The FILENAME is the name of the tarball but without the tar.gz extension.

An example: (For webmin)

# gunzip -c webmin-0.990.tar.gz | tar xf -

-once finished-

# ls
# COPYRIGHT kernel usr
bin root var
dev sbin webmin-0.990
download shared webmin-0.990.tar.gz
etc speed.test www
home tmp

# cd webmin-0.990

*The bold directory is the newly created directory, created during the untaring process.

chuckt101
07-24-2002, 11:57 AM
or shorter (if it works):

tar -xzvf FILENAME.tar.gz

:cool:

neil
07-24-2002, 09:52 PM
even shorter..

tar zxvf <filename>

:D

chuckt101
07-25-2002, 04:29 PM
tar xzf <fil..>[tab]

:stickout