LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How can I decompress this .tar file? (https://www.linuxquestions.org/questions/linux-newbie-8/how-can-i-decompress-this-tar-file-649231/)

okonita 06-14-2008 05:47 AM

How can I decompress this .tar file?
 
Hi all,

I downloaded the IBM DB2TOP monitoring file, unzipped it to find ta.gz file and others. I ran gunzip db2top-2.0-bin.tar.gz and got another file db2top-2.0-bin.tar.
This is where I am stuck. I tried $ tar xvjf db2top-2.0-bin.tar and
$ tar -xvjf db2top-2.0-bin.targot and each time got the following error:

bzip2: (stdin) is not a bzip2 file.
tar: Child returned status 2
tar: Error exit delayed from previous errors


Can someone show me how to decompress this file?

Thanks

Nylex 06-14-2008 05:50 AM

You just need to run "tar xvf filename.tar" now.

If you wanted to do everything in one go (rather than running gunzip and then tar), you could have done so with "tar zxvf filename.tar.gz". The z option is for use on gzipped files, whereas j is for bzipped files (hence the error message).

Edit: you should really read the tar man page for info on the options.

okonita 06-14-2008 06:30 AM

Quote:

Originally Posted by Nylex (Post 3184479)
You just need to run "tar xvf filename.tar" now.

If you wanted to do everything in one go (rather than running gunzip and then tar), you could have done so with "tar zxvf filename.tar.gz". The z option is for use on gzipped files, whereas j is for bzipped files (hence the error message).

Edit: you should really read the tar man page for info on the options.

Thank you Nylex. I removed the .tar file and ran tar zxvf and got it to decompress.

Now I am trying to get db2top to execute but it is failing. You wouldn't know something about db2top, would you?

Again, many thanks

Nylex 06-14-2008 06:34 AM

Unfortunately, I don't know anything about db2top, but it would help if you posted how exactly it's failing. Post error messages if there are any.


All times are GMT -5. The time now is 01:08 AM.