Reduce the size of one or more files
using adaptive Lempel-Ziv coding and move to file
. Restore with uncompress
With a filename of
, or with no files
reads standard input.
Note: Unisys claims a patent on the algorithm used by compress
. Today, gzip
is generally preferred for file compression.
Limit the number of bits in coding to n
is 9-16, and 16 is the default. A lower n
produces a larger, less densely compressed file.
Write to the standard output (do not change files).
Compress unconditionally; i.e., do not prompt before overwriting files. Also, compress files even if the resulting file would actually be larger.
Print the resulting percentage of reduction for files