LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   tar problem (https://www.linuxquestions.org/questions/linux-newbie-8/tar-problem-774009/)

dody1313 12-07-2009 11:21 AM

tar problem
 
hi guys
i am having problem decompressing a folder using tar. (tar -xvf *.tar)
i get this error:
tar: Skipping to next header
tar: Error exit delayed from previous errors

at first i tought the folder was corrupted but it's not when i run the same command on another linux comp.
any help will be appreciated.

thnx in advance

HaroldWho 12-07-2009 11:50 AM

Quote:

...decompressing a folder using tar. (tar -xvf *.tar)
It's not clear from your quote that the tar archive is compressed. If it is then you need
Code:

tar -xzvf
or
Code:

tar -xjvf

malekmustaq 12-07-2009 12:04 PM

dody1313,

Quote:

i am having problem decompressing a folder using tar. (tar -xvf *.tar)
First, your syntax: 'tar -xvf *.tar' your switch 'f' obliges tar to seek a file with an extension 'file.tar'. Check, is it file.tar or a file.tar.gz ?

Second, the archive: See to it that the archive is in good order (healthy) for tar to decompress or extract it. If the archive is bad, tar will refuse.

Third, see to it that in issuing 'tar' there is an archive in that folder/location for tar to extract.

Hope this helps.

Good luck.

dody1313 12-07-2009 02:50 PM

hi guys,
thnx a lot for your replies.
sorry for not giving more info on my command
i have a file named "file.tar"
each time i run the command:
#tar -xvf file.tar
or
#tar -xzvf file.tar
or
#tar -xjvf file.tar

i get these errors:
tar: Child returned status 1 (or status 2)
tar: Error exit delayed from previous errors

what does that mean?

thnx again for helping

HaroldWho 12-08-2009 01:44 PM

Quote:

tar: Child returned status 1 (or status 2)
Status 1 usually means that some files were changed while being archived and so the resulting archive does not contain the exact copy of the file set.

Status 2 refers to a fatal, unrecoverable error.

As a matter of interest, can you extract a filelist with
Code:

tar -tf file.tar
or, if the archive is truly compressed
Code:

tar -tzf file.tar
Also,what does
Code:

file file.tar
say about the file?

John VV 12-08-2009 04:28 PM

if gnome is installed what error dose "file-roller" give ?


All times are GMT -5. The time now is 07:55 AM.