How to enable Bash in Windows 10?

Solution 1:

After installing the Windows Anniversary Update, search for "Developer Mode":

enter image description here

Select "Developer Mode":

enter image description here

Accept the dialog:

enter image description here

Then search for "Windows Features":

enter image description here

Select "Windows Subsystem for Linux (Beta)":

enter image description here

It will then ask you to reboot:

enter image description here

Reboot, then run cmd.exe, then type bash. Accept the license. It will download and install:

enter image description here

This took about 5 minutes to complete on my machine. You'll have to select a username and password too.

Solution 2:

As the blog says: "will first become available in Windows 10 “Insiders” builds after the Build conference".

The Build conference doesn't end until tomorrow (Apr. 1, 2016), so it's not out yet.

Once it's out: "Developers will be able to download the Bash shell from the Windows Store."

Source

Solution 3:

The Bash is available since Build 14316

enter image description here

Run native Bash on Ubuntu on Windows: In this build, you can natively run Bash in Windows as announced last week at Build 2016. To do this, you first need to turn on Developer Mode via Settings > Update & security > For developers.

enter image description here

Then search for “Windows Features” and choose “Turn Windows features on or off” and enable Windows Subsystem for Linux (Beta). enter image description here To get Bash installed, open Command Prompt and type “bash”.

Microsoft explained all steps in detail in this blog post.