Linux in a Nutshell, Third Edition
by Ellen Siever, Stephen Spainhour, Jessica P. Hekman, Stephen Figgins
Name
compress
Synopsis
compress [options] files
Description
Compress one or more files, replacing each with the compressed file of the same name with .Z appended. If no file is specified, compress standard input. Each file specified is compressed separately. compress ignores files that are symbolic links. See also gzip.
Options
- -b maxbits
Limit the maximum number of bits.
- -c
Write output to standard output, not to a .Z file.
- -d
Decompress instead of compressing. Same as uncompress.
- -f
Force generation of an output file even if one already exists.
- -r
If any of the specified files is a directory, compress recursively.
- -v
Print compression statistics.
- -V
Print version and compilation information and then exit.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access