LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   tar command (https://www.linuxquestions.org/questions/linux-general-1/tar-command-8838/)

gogo 11-17-2001 12:40 AM

tar command
 
Hi,

How can I extract a .tgz file?

Is it same as tar?

I tried tar -xfz XXX.tgz, but failed.

Any idea?

gogo

:confused:

trickykid 11-17-2001 01:50 AM

what was the error it gave you if any, cause that seems right to me on what you tried...

did you try the correct path and correct filename?? not to make it so it sounds stupid, but once i was untarring a file, it kept saying it didn't exist and i was dumbfounded when i was forgetting a dash ( - ) in it... :)

dorward 11-17-2001 03:41 AM

tgz is short for tar.gz

Use tar xvzf filename.tgz

infernal 11-17-2001 05:52 AM

that would be:

tar -zxf yourfile.tgz

It is necesary that yourfile.tgz follows right after the f parameter.....

gogo 11-17-2001 09:53 AM

Thanks a lot for all of your help. I can tar it now.

gogo

:p


All times are GMT -5. The time now is 10:24 PM.