1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 20:02:09 +02:00
tldr/pages/common/zstd.md
2022-12-04 19:12:49 +10:00

604 B

zstd

Compress or decompress files with Zstandard compression. More information: https://github.com/facebook/zstd.

  • Compress a file into a new file with the .zst suffix:

zstd {{path/to/file}}

  • Decompress a file:

zstd -d {{path/to/file}}.zst

  • Decompress to stdout:

zstd -dc {{path/to/file}}.zst

  • Compress a file specifying the compression level, where 1=fastest, 19=slowest and 3=default:

zstd -{{level}} {{path/to/file}}

  • Unlock higher compression levels (up to 22) using more memory (both for compression and decompression):

zstd --ultra -{{level}} {{path/to/file}}