Skip to content

Instantly share code, notes, and snippets.

@lazerl0rd
Last active February 25, 2021 09:56
Show Gist options
  • Save lazerl0rd/93245eb72a492ca721655f3a223d2e71 to your computer and use it in GitHub Desktop.
Save lazerl0rd/93245eb72a492ca721655f3a223d2e71 to your computer and use it in GitHub Desktop.
A Shell Script To Install Parallel Compression Tools On Debian-based Systems And Replace The Default Single-Threaded Tools.
#!/usr/bin/env bash
# A Shell Script To Install Parallel Compression Tools On Debian-based Systems And Replace The Default Single-Threaded Tools.
# Diab Neiroukh - 23/Feb/2020 (Licensed under The Unlicense)
sudo apt install lbzip2 pigz lunzip
pushd /usr/local/bin || exit
sudo ln -s /usr/bin/lbzip2 bzip2
sudo ln -s /usr/bin/lbzip2 bunzip2
sudo ln -s /usr/bin/lbzip2 bzcat
sudo ln -s /usr/bin/pigz gzip
sudo ln -s /usr/bin/pigz gunzip
sudo ln -s /usr/bin/pigz gzcat
sudo ln -s /usr/bin/pigz zcat
sudo ln -s /usr/bin/plzip lzip
sudo ln -s /usr/bin/plzip lunzip
sudo ln -s /usr/bin/plzip lzcat
popd || exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment