Zstandard 压缩工具,兼顾速度与压缩率
zstd 压缩/解压 .zst 文件,支持多线程、长距离匹配和字典。适合日志/备份/传输,通常比 gzip 更快、压缩率更高。
zstd file.log
zstd -d file.log.zst
zstd -19 -T0 file.tar
zstd -l file.log.zst
zstd -c file | ssh host 'zstd -d > file'
.zst;需要保留用 -k。-19 压缩率高但慢/吃内存;--long 更吃内存。-T0 使用所有核;小文件可能反而变慢。-d/unzstd/zstdcat;不要直接 cat 二进制。