tldr/pages/common/zstd.md

25 lines
562 B
Markdown
Raw Normal View History

2018-12-18 15:43:09 +00:00
# zstd
> Compress or decompress files with Zstandard compression.
> More information: <https://github.com/facebook/zstd>.
2018-12-18 15:43:09 +00:00
- Compress a file into a new file with the .zst suffix:
`zstd {{file}}`
- Decompress a file:
`zstd -d {{file}}.zst`
- Decompress to `stdout`:
2018-12-18 15:43:09 +00:00
`zstd -dc {{file}}.zst`
- Compress a file specifying the compression level, where 1=fastest, 19=slowest and 3=default:
2018-12-18 15:43:09 +00:00
`zstd -{{level}} {{file}}`
- Unlock higher compression levels (up to 22) using more memory (both for compression and decompression):
2018-12-18 15:43:09 +00:00
`zstd --ultra -{{level}} {{file}}`