Install bash on windows with a few steps.

First, why would you want to do this?

  • You’re moving to Windows from macOS or a Linux distribution and used the command line there.
  • You like the bash shell for aliass, functions, Etc.

Let’s do it.

  1. Click the Start button
  2. Search for PowerShell Windows Powershell
  3. Right-click the Windows PowerShell icon
  4. Choose Run as Administrator
  5. Run this shell command
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

Reboot!

Alternatively, install Cygwin.