Kabir Kabir - 1 year ago 154
Linux Question

How to extract filename.tar.gz file

I want to extract an archive named


tar -xzvf filename.tar.gz
doesn't extract the file. it is gives this error:

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors

pce pce
Answer Source

If file filename.tar.gz gives this message: POSIX tar archive, the archive is a tar, not a GZip archive.

Unpack a tar without the z, it is for gzipped (compressed), only:

mv filename.tar.gz filename.tar # optional
tar xvf filename.tar

Or try a generic Unpacker like unp (https://packages.qa.debian.org/u/unp.html), a script for unpacking a wide variety of archive formats.

determine the file type:

$ file ~/Downloads/filename.tbz2
/User/Name/Downloads/filename.tbz2: bzip2 compressed data, block size = 400k
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download