/pcq/media/post_banners/wp-content/uploads/2016/05/windows10-ubuntu.png)
You can install Ubuntu-based Bash shell on Windows 10 that can run Linux software directly on Windows. This is possible due to Windows 10’s Anniversary update, Microsoft introduced a “Linux Subsystem for Windows” which is a big and new feature for developers. If you are using 64-bit Windows 10 Insider preview, then you can easily install the Bash shell.
How to Install Bash on Windows 10
Step1: To Install Bash first you need to enable Insider Preview builds to get this feature before the Anniversary Update is officially released. To enable it, go to setting app and click on Windows Update option>advanced option.
In the advanced option click on Get started button under the Get Insider Preview Builds option.
Step 2: Once you enabled Insider build, go to Settings app and click no Update & Security > For Developers. Activate the “Developer Mode”.
Step 3: After enabling Developer mode, open the Control Panel, click “Programs,” and click “Turn Windows Features On or Off” under Programs and Features. Enable the “Windows Subsystem for Linux (Beta)” option in the list here and click “OK.” Once it done, you will get a reboot pop-up, just click on the “Restart Now” option.
Step 4: After your computer restarts, click the Start button and type “bash”, and press “Enter.”
Step 5: When you run it the first time it will ask you to accept the terms of service, just type Y to accept and continue.
Step 6: After successful installation, open the Ubuntu Bash shell to run the commands. To run the bash, just open your start menu and search for “bash” or “Ubuntu”. The Bash shell you get here is based on Ubuntu that means you can use apt-get command to install software form Ubuntu repositories.
You cannot use sudo command in this Bash shell because you already using the system under administrative privilege. You can install the software by using apt-get command but you can access them by only Bash shell.