How to Enable the Linux Bash Shell in Windows 10

How to Enable the Linux Bash Shell in Windows 10

Finally, for all Linux fans, Microsoft decided to integrate Linux within Windows thanks to the partnership between Canonical the one that created Ubuntu and Microsoft. And people had a hard time believing it.

After the news Bash on Windows was not available to all the users right after the release. To get Bash at that time you had to install Windows 10 technical preview.

Now that we have got the Windows 10 anniversary update on our systems we can easily get the Bash on Windows but before that let’s see what has Microsoft done to give us Bash.

What is Linux Subsystem?

Bash on Windows provides a Windows Subsystem and Ubuntu Linux run on top of it. It is not a Virtual environment or an alternate application like Cygwin it is complete Linux Kernel inside Windows 10.

What it does is, 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.

You install Linux inside Windows like a regular application. This is a good option if your main aim is to learn Linux/Unix commands.

I recommend reading this article to know more about Bash on Windows.

There are two ways that can actually be used to enable Linux one is using Windows 10 Creator Update and the other one is to enable it by using Developer mode.

Method 1:

I will be installing Ubuntu using Windows Linux Subsystem. You can also use SUSE Linux the procedure is the same for both distros.

Enable “Windows Subsystem for Linux” Feature

To enable that we need to open up PowerShell and run the following command:

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

You will be asked to confirm just type Y.

Run PowerShell as Administrator and type the command.

After the reboot opens up Microsoft Windows Store and search for Linux:

You can install any of these given Linux distributions but I will be installing Ubuntu.

After the download and install finish, you are ready to use your Windows Subsystem Linux.

So now we can simply search for the distro we installed in the start menu:

Just set up the username and password for your account.

This will be asked only the first time you run Bash after that Bash shell will be available for you to be used directly.

Enjoy Linux on Windows 10.

Method 2: Install Linux Bash Shell on older Windows 10

If for some reason you didn’t install the Windows 10 creator update then you can follow these steps.

Go to Settings or you can click the Gear in the start menu to open up settings.

After that click on Update and Security.

After that select, the Developer Mode and you will see a confirm dialog box just click on Yes.

After that, we will go into Control PanelĀ and Program settings:

Then Select Turn Windows Feature on or off :

After that just select Window Subsystem for Linux and click on OK:

Now simply reboot your system and after that in the start menu search Bash and you will be greeted with the Bash Command Line.

I hope you enjoyed the article and do share and comment down below to let us know what improvements can be made.