compress

Format:

Compress options files 

Option:

-v print results of compression

Compress is used to reduce the size of files. Once compressed the file is given the extension .Z. Use uncompress to restore them to their original state.

$ compress myfile 
$ ls myfile* 
myfile.Z

Get Linux and Unix Shell Programming 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.