Now with Windows 10 new Anniversary Update, you will be able to use a new Bash shell for developers. This new update will allow the windows user to use and run Linux shell and applications on windows. The shell is called “Bash on Ubuntu on Windows”
Make sure to also check the next tutorials:
If you are not running the Windows 10 Anniversary Update or Windows 10 Creator Update, please follow one of the following tutorials:
The first step is to check if you’re running Windows 10 with the Anniversary Update. To do this, click on start and type “Run” (or press the Windows key + R) then type the following:
You should be able to see the version number as shown below:
The build number should be 14393.10 or greater. If you are not running this version of windows, please install it before you continue.
Click on start (or press the Windows key) and type “For Developer Settings”
Start windows settings, choose Update & Security, and then click on “For developers”
Check on “Developer mode” to activate it as shown below. If asked to turn on developer mode, click yes.
Click on start (or press the Windows key) and type “Turn Windows features on or off”
Start windows settings, choose “System”, click on “Apps & features”, scroll down to the end of the settings’ page and choose “Programs and Features”, and finally click on “Turn Windows features on or off”
Now, find and enable the “Windows Subsystem for Linux (Beta)” as shown below then click OK. If asked to reboot your system, click “Restart Now”
After Windows reboot, go the command prompt or press the Windows key + R and type cmd.
To see usage options, on the command prompt type the following:
To start the installation of Bash, on the command prompt type:
If you want to automate the installation of Bash for you or if you would like the installation not to prompt the user to accept, type the following on the command line:
lxrun /install /y
To do this, click on start (or press the Windows key) and type “Bash on Ubuntu on Windows” then click on it to start using the shell.
To access the location of the Ubuntu file system directory from windows explorer, go to:
To access the location of the windows drive c or other drivers or folders from the Bash, type the following: