The gzip Command

Using the compress command will get you the results you need, but again, the utility is older and does not work as well as newer ones. Also, the Unix version of compress can be slightly altered as you go from distribution to distribution. Any variance is not good as you may not be able to compress with one utility and decompress with another. To make this point clearer, consider why you would use compress: because it is the only thing you either know or have. It is located on your local Unix system and is there for use.

What if you wanted to use something that was a little less likely to be proprietary? The gzip command (stands for GNU zip) is the original file compression program for GNU/Linux and has been adopted for use with ...

Get SAMS Teach Yourself Unix in 10 Minutes now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.