Last active
February 25, 2021 09:56
-
-
Save lzlrd/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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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