Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

This does not look like a tar archive

Tags:

tar

[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 ?

like image 456
user3311501 Avatar asked Jul 09 '14 12:07

user3311501


People also ask

What is archive in tar?

The archive backup method is used for a copy of one or more files, or an entire database that is saved for future reference, historical purposes, or for recovery if the original data is damaged or lost. Usually, an archive is used when that specific data is removed from the system.

Can 7zip handle tar?

The main features of 7-Zip Supported formats: Packing / unpacking: 7z, XZ, BZIP2, GZIP, TAR, ZIP and WIM.

How do I unarchive a tar file?

Move the tar file to the directory you wish to unpack into (usually the tar file will put everything into a directory inside this directory). Open a command prompt, and cd to the directory. Type 7z x filename. tar at the command prompt (where filename.

What is tar archive in Linux?

The Linux 'tar' stands for tape archive, is used to create Archive and extract the Archive files. tar command in Linux is one of the important command which provides archiving functionality in Linux. We can use Linux tar command to create compressed or uncompressed Archive files and also maintain and modify them.


1 Answers

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
like image 120
Inder Kumar Rathore Avatar answered Nov 08 '22 01:11

Inder Kumar Rathore



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!