compress—compress, uncompress, zcat compress, uncompress files, or display expanded files
compress [ -f ] [ -v ] [ -c ] [ -V ] [ -r ] [ -b bits] [ name …] uncompress [ -f ] [ -v ] [ -c ] [ -V ] [ name …] zcat [ -V ] [ name …]
compress reduces the size of the named files using adaptive Lempel-Ziv coding. Whenever possible, each file is replaced by one with a .Z extension. The ownership modes, access time, and modification time will stay the same. If no files are specified, the standard input is compressed to the standard output.
Example A.14.
1 compress -v book book:Compression:35.07% -- replaced with book.Z 2 ls book.Z |
Explanation
Compresses the book into a file called book.Z and displays the percentage that the file was ompressed and ...
Get Linux Shells by Example 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.