With the new Windows 10 Aniversary Update , a great new feature which is the Bash Shell has been added to the Windows.This Ubuntu-based Bash shell can run Linux software directly on Windows.
This isn’t a virtual machine , a container, or Linux software compiled for Windows, instead, Windows 10 gains a Windows Subsystem for Linux, which is based
on Microsoft’s abandoned Project Astoria work for running Android apps
on Windows.
First of all you need to have the aniversary update of windows 10.
Once you’re sure you’re using the correct version of Windows 10, open
the Settings app and head to Update & Security > For Developers.
Activate the “Developer Mode” switch here to enable Developer Mode.
Next, 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.”
After you do, you’ll be prompted to reboot your computer. Click
“Restart Now” to reboot your computer and Windows 10 will install the
new feature.
After your computer restarts, click the Start button (or press the Windows key), type “bash”, and press “Enter.”
The first time you run the bash.exe file, you’ll be prompted to
accept the terms of service. The command will then download the “Bash on
Ubuntu on Windows” application from the Windows Store. You’ll be asked
to create a user account and password for use in the Bash environment.
If you’d like to automate the installation of Bash instead, you can
run the following command in a Command Prompt window. This will
automatically agree to all prompts and set the default user to “root”
with no password:
lxrun /install /y
We think that there is no need to explain how to use bash then but if any problem
persists , leave a comment