Install Parallel On A Debian, Ubuntu, Alpine, Arch, Kali, Fedora, Raspbian And MacOS
Install parallel
-
Debian
apt-get install parallel
Click to copy -
Ubuntu
apt-get install parallel
Click to copy -
Alpine OS
apk add parallel
Click to copy -
Arch Linux
pacman -S parallel
Click to copy -
Kali Linux
apt-get install parallel
Click to copy -
Fedora
dnf install parallel
Click to copy -
Raspbian
apt-get install parallel
Click to copy -
macOS
brew install parallel
Click to copy
Run commands on multiple CPU cores.
How to use parallel?
Below are few example commands for parallel that you can use in the terminal.
Gzip several files at once, using all cores:parallel gzip ::: file1 file2 file3
Click to copyRead arguments from stdin, run 4 jobs at once:ls *.txt | parallel -j4 gzip
Click to copyConvert JPG images to PNG using replacement strings:parallel convert {} {.}.png ::: *.jpg
Click to copyParallel xargs, cram as many args as possible onto one command:args | parallel -X command
Click to copyBreak stdin into ~1M blocks, feed each block to stdin of new command:cat big_file.txt | parallel --pipe --block 1M command
Click to copyRun on multiple machines via SSH:parallel -S machine1,machine2 command ::: arg1 arg2
Click to copy
Installation of latest parallel command is available for Debian, Ubuntu, Alpine, Arch, Kali, Fedora, Raspbian and macOS. You can copy the command for your OS from above and paste it into your terminal. Once you run the command it will download the 2023 latest package from the repository and install it in your computer/server.