Name
compress
Synopsis
compress [options
]files
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 and bzip2, which are more commonly used now.
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.
Get Linux in a Nutshell, Fourth Edition 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.