Windows 10’s Anniversary Update offers a big new feature for developers: A full, Ubuntu-based Bash shell that can run Linux software directly on Windows. This is made possible by the new “Windows Subsystem for Linux” Microsoft is adding to Windows 10. In this article we are going to learn what is Bash on Windows? and how to run bash shell on windows 10, it is easy let go for it
what is Bash on Windows?
Bash on Windows provides a Windows subsystem and Ubuntu Linux runs atop it. It is not a virtual machine or an application like Cygwin. It is complete Linux system inside Windows 10.
Basically, it allows you to run the same Bash shell that you find on Linux. This way you can run Linux commands inside Windows without the need of installing a virtual machine or dual booting Linux and Windows .
How to Install Bash Shell on Windows 10
Method 1: Here we are going installing Ubuntu using Windows 10 Linux subsytem. You can also use SUSE Linux.
Step1: Go to Start menu and search for PowerShell. Run it as administrator
Once you have the PowerShell running, use the command below to enable Bash in Windows 10.
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
one you entered the command it will ask to confirm your choice then enter Y
Please restart you computer once
Step 2: Once your system has rebooted, go to Windows Store and search for Linux.
You’ll see the option to install Ubuntu , Install Ubuntu for Bash on Windows here.
Step3 : Run Linux inside Windows 10
It will take some time in installing and then you’ll have to set up the username and password.
Don’t worry, it’s just for the first run. Bash shell will be available for use directly from the next time onwards
Now you can enjoy linux on windows 10
The WSL optional component is not enabled. Please enable it and try again. See https://aka.ms/wslinstall for details. Error: 0x8007007e Press any key to continue...
And when you press any key, the application is closed immediately.
The reason here is that the Windows Subsyetm for Linux is not enabled in your case. You should enable it as explained in step 1 of this guide. You can do that even after you have installed Linux from Windows Store.
Method 2 : Install Linux Bash Shell on older Windows 10
Step 1: Go to Windows system settings, then click on Update & Security:
Step 2: Here click on ‘For developers’. You’ll see an option of ‘Developer mode’. Enable it.
Step 3 : Go to Control Panel and , click on “Programs”.
Step 4 : In Programs, click “Turn Windows Features On or Off”
Step 5 : Look for “Windows Subsystem for Linux” and enable it.
Then clock on restart now.
Step 7 : After restarting the computer, click the start button and search for “bash”.
Step 8: When you run it for the first time, you’ll be given the option to download and install Ubuntu. You’ll be asked to create username and password during this process. It will install entire Ubuntu Linux, so have patience as it will take some time in downloading and installing Linux on Windows
Step 9: Once this is done, go back to Start menu and search for Ubuntu or Bash.
Step 10: Now you have got a command line version of Ubuntu Linux
Hope this article was effective for you and run bash shell on windows 10
Related article : How to Run Linux Commands on Windows 10 Easy Steps
If you have any question please leave a comment on comment box