Fast, modern compression with excellent speed/ratio trade-off.
low risk
zstd (Zstandard) offers near-gzip speed with compression ratios approaching xz. The --fast flag prioritizes speed; higher -N levels improve ratio. Now the default compression for Linux kernel packages and increasingly common in DevOps tooling.
| Flag | Meaning |
|---|---|
-d --decompress | Decompress |
-k --keep | Keep source file |
-N | Compression level 1-19 (default: 3) |
--fast | Ultra-fast compression (sacrifices ratio) |
-T --threads | Number of threads |
zstd -k file.tarCompress keeping original · explain & risk-check →zstd -d file.tar.zstDecompress · explain & risk-check →tar -I zstd -cf archive.tar.zst /data/Create zstd-compressed tar archive · explain & risk-check →zstd --fast -T 0 -k large.tarFastest compression using all cores · explain & risk-check →For backup pipelines, zstd is the modern choice: `tar c /data | zstd -T 0 -9 -o backup.tar.zst` — 3-4x faster than xz with only slightly worse compression.
Reference text is hand-written and may be incomplete — check man zstd for your version. Test destructive commands on a non-production system first.