PDA

View Full Version : Tar.gz and tar.bz2.



dragos240
September 17th, 2009, 08:16 PM
What's the difference? Tar is uncompressed. Gz and bz2 are compressed and combined into a compressed archive. What is the difference between these two compression formats?

chris4585
September 17th, 2009, 08:23 PM
I thought .tar's created an archive? .gz and .bz2 are different compressions. I'm probably some what wrong.

dragos240
September 17th, 2009, 08:25 PM
I thought .tar's created an archive? .gz and .bz2 are different compressions. I'm probably some what wrong.

I think I misspoke.

snova
September 17th, 2009, 08:28 PM
What's the difference? Tar is uncompressed. Gz and bz2 are compressed and combined into a compressed archive. What is the difference between these two compression formats?

The latter is better, and somewhat slower, due to using a better algorithm (well, in the sense of compression ratio at any rate).

http://en.wikipedia.org/wiki/Gzip
http://en.wikipedia.org/wiki/Bzip2

Barrucadu
September 17th, 2009, 08:28 PM
I have found that GZip tends to be better for plain text and Bzip2 for everything else.

Though that's just from what I've seen; the opposite could be true.

chris4585
September 17th, 2009, 08:44 PM
I guess I missread the question. I use tar.gz most of the time on my desktop for regular documents, but if I'm dealing with large files like 100mbs or more, I'd use lzma even though it takes longer, its worth the compression.