Files
tldr/pages.zh/linux/compress.md

28 lines
580 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 压缩
> 使用 Unix 的 `compress` 命令压缩文件。
> 更多信息:<https://manned.org/compress.1>。
- 压缩特定文件:
`compress {{path/to/file1 path/to/file2 ...}}`
- 压缩特定文件,忽略不存在的文件:
`compress -f {{path/to/file1 path/to/file2 ...}}`
- 指定最大压缩位数9-16 位):
`compress -b {{bits}}`
- 写入 `stdout`(不更改文件):
`compress -c {{path/to/file}}`
- 解压缩文件(功能类似于 `uncompress`
`compress -d {{path/to/file}}`
- 显示压缩百分比:
`compress -v {{path/to/file}}`