user3311501
user3311501

Reputation: 167

This does not look like a tar archive

[root@c0002242 lfeng]# tar -zxvf /opt/test/ALLscripts.tar.gz -C /opt/test1

tar: This does not look like a tar archive

tar: Skipping to next header

tar: Exiting with failure status due to previous errors

Could you please help me on this ?

Upvotes: 7

Views: 18668

Answers (2)

GrvTyagi
GrvTyagi

Reputation: 4497

I was facing this error because my file was not downloaded yet and I was trying to extract it :).

Upvotes: 0

Inder Kumar Rathore
Inder Kumar Rathore

Reputation: 40018

Run the command

$ file ALLscripts.tar.gz 

Compare the output, if it's gzip (as shown below) then use unzip tool to extract it

$ ALLscripts.tar.gz: gzip compressed data,from Unix

Upvotes: 7

Related Questions