compression utilities


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers compression utilities
# 1  
Old 07-07-2004
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!
# 2  
Old 07-07-2004
Since I didn't specify earlier...I meant free utilities.
# 3  
Old 07-07-2004
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.
# 4  
Old 07-07-2004
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.
# 5  
Old 07-07-2004
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.
# 6  
Old 07-08-2004
Thanks for all the useful information!!
# 7  
Old 07-08-2004
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.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Linux

Best Compression technique ?

Hi all, I am working on a sample backup code, where i read the files per 7200 bytes and send it to server. Before sending to server, i compress each 7200 bytes using zlib compression algorithm using dictionary max length of 1.5 MB . I find zlib is slow. Can anyone recommend me a... (3 Replies)
Discussion started by: selvarajvss
3 Replies

2. Shell Programming and Scripting

file compression

I'am looking for script (or tool) that would compress all files with given extension in all subdirectory. Important part is that every one file have to end in separate archive whit it's own name. Eaven if I could point multiple file in one directory and compress them it would be ok. I' am... (1 Reply)
Discussion started by: Demerzel
1 Replies

3. AIX

Tape compression

Hello everyone I want to use compression in my tape when I backup some file. For example I have several files that use 50gb. If I backup this I need to use two cartridge because without compression I can backup 36gb. My question is with flag I need to use to compress and I can use 72gb in... (2 Replies)
Discussion started by: lo-lp-kl
2 Replies

4. Shell Programming and Scripting

How to avoid CR after compression

Hi all, I am having few files which needs to be concted into a single file and then it is compressed and FTPed from the UNIX server to the Windows server. For the above purpose i am using gzip command to compress the files after concetenation. And i am FTP ing the compressed file in the... (3 Replies)
Discussion started by: Codesearcher
3 Replies

5. UNIX for Advanced & Expert Users

utilities

hi experts, i have a file sample: ======= 000123 5 7 0008 00345 5 9 0004 how can i get an output as 123 5 7 8 345 5 9 4 thanks in an advance subhendu (5 Replies)
Discussion started by: subhendu81
5 Replies

6. UNIX for Dummies Questions & Answers

how to run utilities

I have utilities installed on a UNIX platform and was wondering how i run them. (1 Reply)
Discussion started by: hershey101
1 Replies

7. UNIX for Dummies Questions & Answers

bc and wc utilities???

Hi, Can anybody explain bc and wc system utilities in Unix? Thanks (6 Replies)
Discussion started by: skyineyes
6 Replies

8. UNIX for Dummies Questions & Answers

Un-compression types...

Hi Folks, As I am familiar wih both types compresion forms: gun-zip and .rpm. My questions is how do I uncompress gunz.zip type? As the .rpm I can double click and it will extract...Can someone shed some light on this and thank you... M (2 Replies)
Discussion started by: Mombo_Z
2 Replies

9. UNIX for Dummies Questions & Answers

.z file compression

Hello, I have a .z file which i understand to be UNIX. I'm on PC (no UNIX boxes) and have tried many different unzipping programs to extract this .z file, but only PicoZip has allowed me to view what is inside (telling me, i think, that it's not corrupt), but i have not been able to extract... (3 Replies)
Discussion started by: Gonecat
3 Replies

10. UNIX for Advanced & Expert Users

Predictor compression

Hi everybody, Does anybody know,whether linux-2.4.20-8 supports predictor1 compression in PPP protocol support,as i was able to see there were only two compression techniques that r being supported i.e bsd and deflate compression from "make menuconfig" under network device... (0 Replies)
Discussion started by: sriram.ec
0 Replies
Login or Register to Ask a Question