zstd

Compress or decompress files with Zstandard compression.

Install

All systems
curl cmd.cat/zstd.sh
Debian Debian
apt-get install zstd
Ubuntu
apt-get install zstd
Alpine
apk add zstd
Arch Arch Linux
pacman -S zstd
image/svg+xml Kali Linux
apt-get install zstd
Fedora
dnf install zstd
OS X
brew install zstd
Raspbian
apt-get install zstd
Docker
docker run cmd.cat/zstd zstd powered by Commando

Compress or decompress files with Zstandard compression.

  • Compress a file into a new file with the .zst suffix:
    zstd file
  • Decompress a file:
    zstd -d file.zst
  • Decompress to stdout:
    zstd -dc file.zst
  • Compress a file, while specifing the compression level. 0 = Worst, 19 = Best (Default level is 3):
    zstd -level file
  • Use more memory (both when compressing and decompressing) to achieve a higher compression ratio:
    zstd --ultra -level file

© tl;dr; authors and contributors