Listen to this post
Install bash on windows with a few effortless 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 simply like the bash shell for things like alias, functions, etc.
- Click the Start button
- Search for PowerShell
- Right-click the Windows PowerShell icon
- Choose Run as Administrator
- Run this shell command
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
Alternatively, you can install Cygwin.