Install bash on windows with a few steps.

Why?

  • You’re moving to Windows from macOS or a Linux distribution and use the command line there.
  • You like using the shell for aliases, functions, Etc.
  • You’re forced to use Windows, and the CLI improves your experience.

Let’s Do It!

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

Reboot!

Alternatively, install Cygwin.