View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-30-2008, 09:26 PM   #1
Registered: Jan 2008
Location: Indonesia, tanah air beta
Distribution: Knoppix v5
Posts: 97

Rep: Reputation: 15

What is tar.bz2? What is the difference between with tar.bz2?
Old 03-30-2008, 09:37 PM   #2
Senior Member
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 61
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
Old 03-30-2008, 09:40 PM   #3
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,047
Blog Entries: 11

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Originally Posted by andreas_skw View Post
What is tar.bz2?
A bzip2 compress tar archive.

Originally Posted by andreas_skw View Post
What is the difference between 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.

Old 03-31-2008, 04:30 AM   #4
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
Furthermore the tar command has options to manage both the compression algorithms:
tar zxvf file.tar.gz     # will extract gzipped archives
tar jxvf file.tar.bz2     # will extract bzipped2 archives



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
.tar.gz and .tar.bz2 software installation thriver1 Linux - Software 2 03-27-2007 01:11 PM
BackUp & Restore with TAR (.tar / .tar.gz / .tar.bz2 / tar.Z) asgarcymed Linux - General 5 12-31-2006 03:53 AM
.rpms, .tar.gz, .tgz, .src.rpm, & .tar.bz2 whoots Mandriva 10 10-18-2003 01:08 PM
GUI support tar.gz/tar/gz/bz2 and etc demmylls Linux - General 3 10-09-2003 08:43 PM
problem unzipping a tar.bz2 file tar: Error is not recov jyome Linux - Software 4 09-04-2003 02:04 PM

All times are GMT -5. The time now is 09:41 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration