2023-10-21 08:52:10 +01:00
|
|
|
# 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 ...}}`
|
|
|
|
|
2024-02-09 13:55:36 +00:00
|
|
|
- Specify the maximum compression bits (9-16 bits):
|
2023-10-21 08:52:10 +01:00
|
|
|
|
|
|
|
`compress -b {{bits}}`
|
|
|
|
|
2023-10-24 02:25:09 +01:00
|
|
|
- Write to `stdout` (no files are changed):
|
2023-10-21 08:52:10 +01:00
|
|
|
|
|
|
|
`compress -c {{path/to/file}}`
|
|
|
|
|
|
|
|
- Decompress files (functions like `uncompress`):
|
|
|
|
|
|
|
|
`compress -d {{path/to/file}}`
|
|
|
|
|
|
|
|
- Display compression percentage:
|
|
|
|
|
|
|
|
`compress -v {{path/to/file}}`
|