- 1 year ago
How to Install GNU Parallel on Windows 10 using git-bash
To install GNU Parallel on Windows 10 using Git Bash, you can follow these steps:
Install Git Bash:
If you haven't already installed Git Bash, download and install it from the official Git website (https://git-scm.com/downloads). Git Bash provides a Linux-like command-line environment on Windows.Install Wget (optional):
GNU Parallel is not natively available on Windows, so we'll use Wget to download it from the internet. If you don't have Wget installed, you can download it from here: https://eternallybored.org/misc/wget/After downloading Wget, place the
wget.exe
file in a directory that is included in your system's PATH.Download GNU Parallel:
Open Git Bash and run the following command to download GNU Parallel using Wget:bashwget -O parallel https://git.savannah.gnu.org/cgit/parallel.git/plain/src/parallel
This command will download the GNU Parallel script and save it as
parallel
in the current directory.Make the Script Executable:
In Git Bash, make theparallel
script executable by running the following command:bashchmod +x parallel
Add GNU Parallel to PATH (Optional):
If you want to use GNU Parallel from any directory without providing the full path, you can move theparallel
script to a directory that is included in your system's PATH. For example, you can move it to/usr/local/bin
:bashmv parallel /usr/local/bin
Now, you should be able to use GNU Parallel from any directory in Git Bash.
Verify Installation:
To verify that GNU Parallel is installed correctly, run the following command in Git Bash:bashparallel --version
You should see the version information for GNU Parallel.
GNU Parallel is now installed on your Windows 10 system using Git Bash. You can use it to parallelize commands and tasks from the command line. Note that while GNU Parallel provides a Linux-like experience, it is still running within the Git Bash environment on Windows, so some commands or features might behave differently compared to a native Linux environment.