Skip to content

Instantly share code, notes, and snippets.

@jaytaylor
Last active January 11, 2022 18:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaytaylor/3745e5396d39db5fdf2dd232f3772e2b to your computer and use it in GitHub Desktop.
Save jaytaylor/3745e5396d39db5fdf2dd232f3772e2b to your computer and use it in GitHub Desktop.
How to use zstd for fast as hell compression

HOW TO: zstd

Why?

Way faster than bzip2, it's basically streaming compression with comparable compression levels.

Compress

tar -cvf - foo | zstd -f --no-progress -o foo.tar.zst

Decompress

zstd -d -k -c -q foo.tar.zst | tar -xv

Don't forget to make sure it's installed (!)

apt-based distros

apt install -y zstd

yum-based distros

yum install -y zstd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment