compress command is rarely used any more, and has largely been replaced by the Unix/Linux
bzip2 commands. However, on some Unix systems the
compress command is still used, so for them, here are a few examples of how to use it.
Unix compress command examples
The following command will compress the file named foo.tar into a new file named foo.tar.Z: