Search⌘ K
AI Features

Bash on Windows

Explore how to install and configure Bash on Windows by using MSYS2 or the Windows Subsystem for Linux. Understand the software options, check your Windows system type, and follow installation steps to create a POSIX-compatible environment that supports Bash scripting on Windows.

Software options

If you’re using Windows as your OS, you need both a Bash interpreter and a POSIX-compatible environment. Bash needs this environment to work correctly.

There are two ways to install it.

You can meet the “Unix environment” and “Linux environment” terms. They both mean a software environment that is compatible with POSIX standards.

The first option is to install the MinGW toolkit. It contains the GNU compiler collection in addition to Bash. ...