The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
using a ssh tunnel with nx compression bolboln01 High Level Programming 0 02-22-2008 02:44 AM
Predictor compression sriram.ec UNIX for Advanced & Expert Users 0 08-31-2006 04:31 AM
.bz2 compression Phobos UNIX for Dummies Questions & Answers 4 01-19-2005 01:21 AM
tar compression - please help Taylor UNIX for Dummies Questions & Answers 4 08-08-2001 02:49 PM
file compression kristy UNIX for Dummies Questions & Answers 2 05-16-2001 07:57 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-07-2004
Registered User
 

Join Date: Sep 2002
Posts: 67
compression utilities

I've noticed bzip2 gives a little bit better compression than gzip. So...I'm curious...what's gives the best compression out of all the compression utilities?

Thanks!
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 07-07-2004
Registered User
 

Join Date: Sep 2002
Posts: 67
Since I didn't specify earlier...I meant free utilities.
Reply With Quote
  #3 (permalink)  
Old 07-07-2004
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 3,465
A couple of points -

gzip -9 tells the program to compress as much as possible

zip, gzip, etc all use the same algorithms, so there won't be huge differences. Also, one idea is to try to 'uncompress' a file made by another compressor - at least make it feasible.
Reply With Quote
  #4 (permalink)  
Old 07-07-2004
LivinFree's Avatar
Goober Extraordinaire
 

Join Date: Jul 2001
Location: Portland, OR, USA
Posts: 1,584
In my experience, bzip2 is usually (but not always) better with compression. gzip is my favorite, though. It faster in many cases, and compresses well enough for me.

I do think that zip, gzip, compress, and bzip2 are all different algorithms, though. I know that GNU Zip (gzip) was written specifically because the algorithm in the "compress" program wasn't "free" in the FSF meaning of the word. I was also under the impression that Zip, although it may have been based on the same mathmatics as "compress", was written independently - as was bzip2.

Check the man pages, at least for gzip and bzip2. If I remember correctly, there is some discussion of the algorithm implementation within.
Reply With Quote
  #5 (permalink)  
Old 07-07-2004
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,334
pack -- Huffman coding
compact -- adaptive Huffman coding
compress -- adaptive Lempel-Ziv aka Lempel-Ziv-Welsh aka modified Lempel-Ziv aka LZW
gzip -- Lempel-Ziv
bzip2 -- Burrows-Wheeler

This page compares gzip with bzip2. bzip2 will almost always result in a smaller file at a tremendous cost of cpu time. bzip2 might make sense if you're downloading a very large file across a 56k dailup or something...other than that, I'd stick with gzip.
Reply With Quote
  #6 (permalink)  
Old 07-08-2004
Registered User
 

Join Date: Sep 2002
Posts: 67
Thanks for all the useful information!!
Reply With Quote
  #7 (permalink)  
Old 07-08-2004
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 3,465
Perderabo was right. I was quoting from an old document from an ACM meeting where they were trying to get compression utilities to work on different file formats.

Sorry.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 07:50 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0