O'Reilly logo

Linux® Desk Reference, Second Edition by Scott Hawkins

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

Commands

compress

[ -f ] [ -v ] [ -c ] [ -V ] [ -r ] [ -b bits] [name …]

uncompress

[ -f ] [ -v ] [ -c ] [ -V ] [ name …]

Compress makes files smaller via adaptive Lempel-Ziv encoding, uncompress (and zcat) reverse the effects of compress. Usually the resultant files are replaced with a similarly named file with a .Z extension. Access permissions, ownership, and modification times are retained.

Example: To compress the file bigfile.txt, use

compress bigfile.txt

-c Send results to standard output without changing the files
-r Recursive operation. Compress the contents of any directories found
-V Display version information
-b bits encoding
-v Verbose operation

cpio

{-o|--create} [-0acvABLV] [-C bytes] [-H format] [-M message] [-O [[user@]host: ...

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