1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 11:42:08 +02:00
tldr/pages/linux/compress.md
Lena 9ced683c99
style-guide: add guidelines for standard streams; fix remaining pages (#11196)
* readonly, {un,}compress, zbarcam: use proper syntax for IO streams

* style-guide: add guidelines for standard streams

* duckdb, perl: add backticks around stdin and stdout
2023-10-24 06:55:09 +05:30

28 lines
594 B
Markdown

# compress
> Compress files using the Unix `compress` command.
> More information: <https://manned.org/compress.1>.
- Compress specific files:
`compress {{path/to/file1 path/to/file2 ...}}`
- Compress specific files, ignore non-existent ones:
`compress -f {{path/to/file1 path/to/file2 ...}}`
- Set maximum compression bits (9-16 bits):
`compress -b {{bits}}`
- Write to `stdout` (no files are changed):
`compress -c {{path/to/file}}`
- Decompress files (functions like `uncompress`):
`compress -d {{path/to/file}}`
- Display compression percentage:
`compress -v {{path/to/file}}`