tar error - 'Child returned status 1'
hi!
I am trying to unzip an .tar.gz file, so, take a look at my steps root@lisa:~# gzip -d xxxxxx.x.x.tar.gz root@lisa:~# tar -zxvf xxxxxx.x.x.tar them, I had an error msg (is this an error?) gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error exit delayed from previous errors help! :) |
You used "tar -zxvf" for the second command. the 'z' option tells tar to use gzip to uncompress the file. Since you already uncompressed it in the first command, gzip doesn't know what to do with it, and it consequently croaks. Tar stops because gzip encountered a problem. So, with the file you have now, you would extract it with:
tar -xvf xxxxxx.x.x.tar I would go back and re-gzip the tar file though (to save space): gzip xxxxxx.x.x.tar tar -zxvf xxxxxx.x.x.tar.gz |
The first step uncompresses the tar ball.
In the second step, tar is expecting a compressed tar ball (.tar.gz). You can either do: Code:
tar -xvf fileName.tar or Code:
tar -xzvf fileName.tar.gz I hope this helps --Ian |
thanks!
well, the idea of merge two kinds of uncompress a file is a little bit confuse to me, but I understood the answers!
I will try it! thanks! |
Thanks for your replies to fabio_listas' question, they helped me too ;) I will try them and see if they work for me.
However my question relates to a related yet different thing. Dark Helmet said: tar -zxvf file.tar.gz and IBall said tar -xzvf file.tar.gz I would like to know whether the order of instructions is important or whether the command has a differnet meaning depending on the combination of the letters. Thanks a lot, xinelo |
Nope. The order of options on the command line doesn't matter. Don't think of them as "instructions" per se, but as switches. You're telling the program how to operate; not giving it an explicit sequence of steps to take.
The examples above are equivalent to: Code:
tar -z -x -v -f filename.tar |
thanks
ok. thanks a lot! :)
|
By reading it,my problem is also solved! Thanks.:newbie:
|
|
All times are GMT -5. The time now is 09:20 PM. |