While everyone was busy writing off Microsoft, the Redmon giant went ahead and acquired the popular code-management platform, GitHub. On similar lines, Microsoft joined the Linux Foundation as a partner to bring support for Linux kernel on Windows 10. All these decisions indicate that Microsoft is serious about bringing software development and research on Windows 10. So if you are a student or a programmer, I will show how you can enable the Linux Bash Shell on Windows 10 and take advantage of this awesome feature. Not only that, but I will also share the steps to upgrade from Windows Subsystem for Linux (WSL 1) to the latest WSL 2 which packs lots of new improvements. With all that said, let’s go ahead and learn about the installation process.

The steps to enable the Linux Bash Shell on Windows 10 are quite simple and straightforward. All you have to do is enable certain features on Windows 10 and download your choice of Linux distribution from Microsoft Store. That’s it. So let’s go through the steps in detail without any delay.

  1. For a few seconds, it will show “installing….” and after that, you can set your UNIX username and password. Voila, the Linux Terminal is ready to use!

If your PC is enrolled in the Windows Insider program and is updated to 18917 or above build then you can upgrade to the latest WSL 2. It comes with significant performance improvement which I have talked about in detail in the next section. So, let’s go ahead and learn how to upgrade from WSL 1 to WSL 2.

  1. Before moving to WSL 2, we need to enable another Windows Feature. Similar to what we did in the first step of the above section, search for “windows features” again and open it. Now, scroll down and enable the “Virtual Machine Platform” feature. Finally, restart your computer.

wsl -l -v

With the release of WSL 2, you can do much more on Windows 10 since it comes with a real Linux kernel. It takes almost 20x less time than WSL 1 to fetch I/O commands and compile programs which are huge improvements. The WSL 1 was shipped with a Linux kernel compatibility layer that took significantly more time to decompile commands and answer system calls. Also, there was limited command support on WSL 1 which has now been replaced by full support with WSL 2. Basically, for serious programmers and students, it’s a boon having Windows and full Linux support side by side.

Here is a brief timeline of the WSL 2 release date.

Use Linux Bash Shell with WSL 2 Support in Windows Terminal

Now, after the Windows Insider September release, you can use Bash Shell along with PowerShell and Command Prompt side by side on Windows Terminal. And the great part is that it supports the latest WSL 2. No need to convert the distro every single time. You can just open the Windows Terminal and click on the “down-arrow” button and select “Ubuntu”. That’s it. Enjoy!

So that was our detailed look into Windows Subsystem for Linux and how you can enable the Linux Bash Shell with WSL 2 support on Windows 10. It’s amazing how Microsoft is showing its commitment to bring full-fledged Linux support on Windows 10. Clearly, Microsoft is trying to make Windows 10 a universal platform for everyone including average users, developers and of course, students. Anyway, that is all from us. If you found the article informative and want to see similar posts on the new Windows-Linux ecosystem then stay tuned with us. We will be bringing more in-depth guides and tutorials in the future.