Compress and Decompress with zstd

Install zstd

sudo apt install zstd

Single File

zstd <file>
zstd --threads=8 <file> # multi-thread
zstd -d <file>

Folder

export ZSTD_NBTHREADS=8
tar --create --zstd --file folder.tar.zst folder
export ZSTD_NBTHREADS=8
tar --extract --zstd --file folder.tar.zst

Aug 11, 2023

HOME