The Windows 10 anniversary upgrade is here and now you can easily get Bash on Windows.
The first thing you need to do is to enable Windows Subsyetm for Linux feature from PowerShell.
Go to the Start menu and search for PowerShell.
Once you have the PowerShell running, use the command below to enable Bash in Windows 10.
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
Now you should be asked to reboot your computer.
Even if you are not asked to, you must restart your system.
Once your system has rebooted, go to the Windows Store and search for “Linux.”
For default I selected Ubuntu, because I have more familiarity with Ubuntu than another Linux distributions.
You are almost there.
Once you have installed Linux, it’s time to see how to access Bash in Windows 10.
Just search for the Linux distribution you installed in the previous step. In my case it was Ubuntu.
You’ll see that it runs like a normal Windows application.
It will take some time installing and then you’ll have to set up the username and password.
After all you'll see this beautiful console image:
Don’t worry, it’s just for the first run.
Bash shell will be available for use directly from the next time onwards.
Now enjoy Linux inside Windows 10.