I have a tar.gz file and I want to extract it using terminal. I used following commands:
tar tvzf ldtp_3.5.0.orig.tar.gz and
tar -xvzf ldtp_3.5.0.orig.tar.gz. However, I get the same result for both the files:
tar: This does not look like a tar archive tar: Skipping to next header tar: Exiting with failure status due to previous errors
I output of the file command shows its a gzip file:
$ file ldtp_3.5.0.orig.tar.gz ldtp_3.5.0.orig.tar.gz: gzip compressed data, from Unix
I can extract it using Right-click –> Extract but I want to do that using terminal. Can anyone tell me how to do that?