Files
tldr/pages.zh/common/zstd.md
2024-01-01 10:38:53 +01:00

25 lines
602 B
Markdown
Raw 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.

# zstd
> 使用 Zstandard 压缩来压缩 / 解压文件。
> 更多信息:<https://github.com/facebook/zstd>.
- 将一个文件压缩到一个 `.zst` 后缀的压缩文件中:
`zstd {{file}}`
- 解压缩一个文件:
`zstd --decompress {{file.zst}}`
- 将文件解压缩到标准输出(`stdout`
`zstd --decompress --stdout {{file.zst}}`
- 使用指定的压缩等级来压缩一个文件.0 = 最差19 = 最好(默认等级是 3
`zstd -{{level}} {{file}}`
- 使用更多内存(解压或压缩时)来得到更高的压缩比:
`zstd --ultra -{{level}} {{file}}`