2018-12-18 15:43:09 +00:00
|
|
|
# zstd
|
|
|
|
|
|
|
|
> Compress or decompress files with Zstandard compression.
|
2019-06-03 01:06:36 +01:00
|
|
|
> 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`
|
|
|
|
|
2019-06-17 16:00:38 +01:00
|
|
|
- Decompress to `stdout`:
|
2018-12-18 15:43:09 +00:00
|
|
|
|
|
|
|
`zstd -dc {{file}}.zst`
|
|
|
|
|
2020-01-30 00:41:22 +00:00
|
|
|
- Compress a file, while specifing the compression level (0 being worst, 19 best, and 3 default):
|
2018-12-18 15:43:09 +00:00
|
|
|
|
|
|
|
`zstd -{{level}} {{file}}`
|
|
|
|
|
|
|
|
- Use more memory (both when compressing and decompressing) to achieve a higher compression ratio:
|
|
|
|
|
|
|
|
`zstd --ultra -{{level}} {{file}}`
|