LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   tar.bz2 (https://www.linuxquestions.org/questions/linux-newbie-8/tar-bz2-631788/)

andreas_skw 03-30-2008 08:26 PM

tar.bz2
 
What is tar.bz2? What is the difference between tar.bz with tar.bz2?

IBall 03-30-2008 08:37 PM

I suggest reading up on this topic if you are interested.

Basically, tar concatenates the files into a contiguous archive (Tape Archive).

BZ, BZ2 and GZ are compression algorithms to make the archive smaller. bz2 will achieve greater compression ratios than gz, however this comes at the expense of time and processor power to do so.

Normally, you will see tar.gz or tar.bz2 as gz and bz2 are unable to compress more than one file. Therefore, a group of files can be made into a single tar archive and then compressed.


I hope this helps
--Ian

Tinkster 03-30-2008 08:40 PM

Quote:

Originally Posted by andreas_skw (Post 3105416)
What is tar.bz2?

A bzip2 compress tar archive.

Quote:

Originally Posted by andreas_skw (Post 3105416)
What is the difference between tar.bz with tar.bz2?

A typo/spelling mistake. Unless of course you meant
" What is the difference between tar.gz with tar.bz2? "
In that case it's the difference between a gzip compressed
and a bzip2 compressed tar archive.


Cheers,
Tink

colucix 03-31-2008 03:30 AM

Furthermore the tar command has options to manage both the compression algorithms:
Code:

tar zxvf file.tar.gz    # will extract gzipped archives
tar jxvf file.tar.bz2    # will extract bzipped2 archives



All times are GMT -5. The time now is 08:37 PM.