Compression is the technique whereby a file is analyzed mathematically and made smaller. Compress is very useful in reducing the amount of disk space taken up by large files that you use infrequently.
The amount of compression will vary, depending upon the type of file being compressed, the compression algorithm used, and the level of compression requested. In general, files that show a great deal of repetition internally will compress more thoroughly than those that are largely random; thus, in general a text file will compress more thoroughly than will a digitized sound sample or image (although there are exceptions). The higher the level of compression you request, the more thoroughly the file will be compressed, but the longer the machine will have to work to achieve it. In most instances, raising the level of compression very high will save only a few bytes at a great cost in computer time.
You should note, too, that although compression algorithms try very hard not to lose information, it is possible that compressing some very complex files may result in a loss of information: that is, if you compress a file and de-compress it, the de-compressed file may be exactly the same as it was before you first compressed it. These programs will not affect most everyday varieties of data; but you should be aware of this fact.
COHERENT comes with the following tools for compressing and uncompressing files:
If you have received a compressed file from a third-party source, you may have no idea what tool was used to compress the file; fortunately, however, most compression tools use standard suffices to ``stamp'' the files they compress. The following table gives commonly used suffices, plus examples of how to uncompress files that bear them:
_C_o_m_p_r_e_s_s_i_o_n _D_e_c_o_m_p_r_e_s_s_i_o_n _E_x_a_m_p_l_e
_S_u_f_f_i_x _P_r_o_g_r_a_m _P_r_o_g_r_a_m
..ZZ ccoommpprreessss uunnccoommpprreessss uunnccoommpprreessss ffoooo..ZZ
..ttaarr..ZZ ttaarr||ccoommpprreessss uunnccoommpprreessss||ttaarr zzccaatt ffoooo..ttaarr..ZZ || ttaarr xxvvff --
..zz ggzziipp gguunnzziipp gguunnzziipp ffoooo..zz
..ttaarr..zz ttaarr||ggzziipp gguunnzziipp||ttaarr gguunnzziipp ffoooo..ttaarr..zz ;; ttaarr xxvvff ffoooo..ttaarr
..ttggzz ggttaarr --cczz ggttaarr --xxzz ggttaarr --xxvvzzff ffoooo..zz
..ggttzz Same as ..ttggzz
..ttaazz Same as ..ttggzz