(1) To compact data to save space. See
data compression and
archive program.
(2) A Unix utility used to compress files. This is the perfect example of poor technical naming. When a common name is used to name a function, it becomes tedious to document the process. For example, "use gzip to compress the file instead of compress because..." See
archive formats,
tar,
gzip and
data compression.