next up previous

3.1.4 Text Compression and File Archives     continued...

A newer and more flexible set of programs is available from the Free Software Foundation.gif gzip and gunzip are similar to compress and uncompress, but do a better job of compressing files (they claim a typical reduction of 60% to 70% in the size of English text). gunzip will also expand files created by compress and other programs. Here is an example of how to use gzip and gunzip:

$ gzip networks.mif
$ ls -l networks.mif*  
-rw-r--r-- 1 conery faculty 66571 Aug 18 15:38 networks.mif.z 
$ gunzip networks.mif.z
$ ls -l networks.mif* 
-rw-r--r-- 1 conery faculty 564433 Aug 18 15:38 networks.mif
gzip reduced the size of this text file from 564,433 bytes to 66,571 bytes.