LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

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

Rep: Reputation: 15
tar.bz2


What is tar.bz2? What is the difference between tar.bz with tar.bz2?
 
Old 03-30-2008, 08:37 PM   #2
IBall
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
--Ian
 
Old 03-30-2008, 08:40 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,971
Blog Entries: 11

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

Quote:
Originally Posted by andreas_skw View Post
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
 
Old 03-31-2008, 03:30 AM   #4
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,488

Rep: Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956
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
 
  


Reply

Tags
tarbz2


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 12:11 PM
BackUp & Restore with TAR (.tar / .tar.gz / .tar.bz2 / tar.Z) asgarcymed Linux - General 5 12-31-2006 02:53 AM
.rpms, .tar.gz, .tgz, .src.rpm, & .tar.bz2 whoots Mandriva 10 10-18-2003 12:08 PM
GUI support tar.gz/tar/gz/bz2 and etc demmylls Linux - General 3 10-09-2003 07:43 PM
problem unzipping a tar.bz2 file tar: Error is not recov jyome Linux - Software 4 09-04-2003 01:04 PM


All times are GMT -5. The time now is 03:52 AM.

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