The Anniversary Update allows developers to run a full, Ubuntu-based Bash shell (.sh scripts) directly on Windows 10 OS. This new feature is based on Microsoft’s abandoned Project Astoria and uses the same binaries of Ubuntu, so it is not a virtual machine or Cygwin software. Here is the tips about how to get the built-in linux enuironment and run the command.
How to Install/Enable Linux Ubuntu Bash Shell on Windows 10
Note: The feature is only works on 64-bit builds, without supporting the 32-bit version.
* You need to enable Insider Preview builds to test new features by using at least build 14316 of Windows 10.
First sign into your PC with a MIcrosoft account, visit the Windows Insider Program webpage in your web browser, sign in with your Microsoft account, and join the program from there.
Open the Settings app, select Update & security, and select Advanced options. Scroll down to Get Insider builds, and click or tap “Get Started“.
Return back to Update & Security, go to For Developers. In its right panel, check the “Developer Mode” box to enable Developer Mode.
* Open the Control Panel, click Programs > Turn Windows Features On or Off” link under Programs and Features, locate the “Windows Subsystem for Linux (Beta)”and check its box , and click OK button.
* Reboot your tablet or computer to complete the process.
Then cLick the Start button, type bash into search box, and select the top one from the results to run the bash.exe file. After you accept the terms of service, it will download the Bash on Ubuntu on Windows app from the Windows Store. Enjoy yourself.