Skip to content

Instantly share code, notes, and snippets.

@AnnoyingTechnology
Last active December 12, 2019 07:51
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AnnoyingTechnology/0c1aa7cd3147a58c3b2a09aa1a6bbc44 to your computer and use it in GitHub Desktop.
Save AnnoyingTechnology/0c1aa7cd3147a58c3b2a09aa1a6bbc44 to your computer and use it in GitHub Desktop.
Multi-threaded CLI cheatsheet for gzip, bz2, xz (lzma)

.gz (GNU zip)

Medium compression ratio, fast speed.

apt install pigz 
tar -I pigz -cvf archive.tar.gz folder-or-document

.bz2 (bzip2)

Medium compression ratio, medium speed.

apt install lbzip2 
tar -I lbzip2 -cvf archive.tar.bz2 folder-or-document

.xz (lzma)

High compression ratio, slow speed.

apt install pxz 
tar -I pxz -cvf archive.tar.xz folder-or-document
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment