zstd (Zstandard) is een modern compressie-algoritme: sneller dan gzip, bijna zo goed als xz.
zstd bestand.txt # Naar bestand.txt.zst
zstd -d bestand.txt.zst # Decomprimeren
zstd -k bestand.txt # Origineel bewaren
| Optie | Betekenis |
|---|---|
-d | Decomprimeren |
-k | Bewaar origineel |
-n (1–22) | Compressieniveau (standaard: 3) |
-19 | Hoog niveau |
--ultra -22 | Maximale compressie |
-T n | Aantal threads |
-r | Recursief |
--progress | Voortgang tonen |
Snel comprimeren:
zstd bestand.txt
Maximale compressie:
zstd --ultra -22 groot-bestand.sql
Met meerdere threads:
zstd -19 -T 0 bestand.tar
Met tar:
tar -I zstd -cf archief.tar.zst map/
tar -I zstd -xf archief.tar.zst
# gzip: ~100 MB/s compressie
# zstd (niveau 3): ~500 MB/s, betere compressieverhouding
zstd is de beste keuze als snelheid én compressieverhouding beide tellen — het is de standaard in moderne systemen zoals Linux-kernel en Facebook's infrastructure.