O'Reilly logo

SAMS Teach Yourself Unix in 10 Minutes by Robert Shimonski

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The compress Command

Use this command and specify what you want to compress. The compress command, when used, will be seen as compress <filename>. The compress command is an older Unix command that uses an older algorithm to make the compression. In fact, this tool is not commonly used anymore, but it does exist on just about every version of Unix. Better compression algorithms have since been developed; that's why it's been moved to the side and replaced by tools such as gzip.

Files created with the compress command have the file suffix .Z. This will appear in the directory in which you compressed the original file, and can be seen by using the ls -l command.

The uncompress command uncompresses the results of a compress command. To use the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required