How do I uncompress this archive?


Recommended Posts

I'm not sure if this will help enough, but at the command prompt, type file filename

This will have linux try to determine the filetype by looking at it.

I'm not sure that this will be good enough to see what that file is.

Perhaps it is just corrupted? Maybe try making a test .tar on your own, and try extracting the test archive you just made - to make sure that everything is working...

Link to comment
Share on other sites

Ok. That's promising.

To uncompress the tar.gz file (tape archived, gZipped file), use the command:

tar -xzvf filename

This should then uncompress and list each file it is extracting.

If this fails, I want you to check yourself by creating an archive like this:

cat >> test1 and hit ENTER to create and add to a new test1 text file.

At the blank line, enter some random text (type a message, or hit random keys, it doesn't matter) then hit ENTER.

Do that a few more times.

At a blank line, hit CTRL+D to finish adding text to the test1 file you just created.

Now use cp test1 test2 to create another copy of your file.

Do this to create files up to test9.

Now, run the command tar -cvzf ./tests.tar.gz test* to copy all of your testx files into a newly created and compressed zip file.

Try the unzip tar command at the beginning of this message on this new .gz file and see if that works. If it works, then your process (and tar program) are correct - the problem is in your file that is failing to unzip.

If this fails to work on the file you just created, then you missed a step (or had a typo), or you have BIG problems....

Good Luck!

Mark

Link to comment
Share on other sites

first I'd just do these steps:

rename archive.tar.tar archive.tar.bz2

bunzip2 -d archive.tar.bz2

tar -xvf archive.tar

yea that would be what i would do.. not really sure where the other guy was going with the 'case study' :)

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.