Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

untar tar.gz 2

Status
Not open for further replies.

gatetec

MIS
Mar 22, 2007
420
US
// AIX 5.1 and 5.2

Can you pls give me a quick tip on how to untar this tar.gz?

tar xvfz back_C87ZXIE.tar.gz
Usage: tar -{c|r|t|u|x} [-BdFhilmopsvw]
[-Number] [-fFile]
[-bBlocks] [-S [Feet] [Feet @Density] [Blocksb]]
[-LInputList] [-NBlocks] [-C Directory] File ...

tar -xvfz back_C87ZXIE.tar.gz
tar: z: A file or directory in the path name does not exist.

thx much
 
Depending on OS, I've found it usually works better if you "unzip" the file before "untarring" it - instead of trying to do it all in one command.

So, I would do something like this:

gunzip back_C87ZXIE.tar.gz followed by a
tar -xvf back_C87ZXIE.tar
 
If you're short on diskspace, or don't want ot touch the gzipped file:

gunzip -c back_C87ZXIE.tar.gz | tar -xvf-

I believe gzcat can be used also

gzcat back_C87ZXIE.tar.gz | tar -xvf-


HTH,

p5wizard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top