Now, we all know what a dual-mode operating system is. What will you do if you want to use the Windows operating system and the Linux operating system but your PC is not strong enough to handle the dual-mode operating systems? Does it mean you have to keep two PCs, one with the Windows operating system and another with the Linux operating system? Obviously, not.
Microsoft has made it possible to use a dual operating system mode without actually having two operating systems in your PC. Microsoft in partnership with Canonical, which is the parent company of Ubuntu, announced that now, you can run RalinkLinuxClient on Windows using a Bash shell i.e. you will be able to perform all the functions of Linux on Windows without having a Linux operating system in your PC. And, with the up-gradation of Windows 10, it has become very easy to get a Bash shell on Windows. Now, this question arises, how to install the Linux Bash shell on Windows 10? In this article, you will get an answer to this.
How to install the Linux Bash shell on Windows 10
In order to use the Linux Bash shell on Windows 10, first of all, you have to install the Linux Bash shell on your Windows 10, and before installing the Bash shell, there are some prerequisites.
How to install the Linux Bash shell on Windows 10 Alternative: Install Linux distros using Microsoft Store
You must be running the Windows 10 anniversary update on your machine. You must be using the 64-bit version of Windows 10 as the Linux Bash shell does not work on the 32-bit version.
Once all the prerequisites are fulfilled, start installing the Linux Bash shell on your Windows 10. To install the Linux Bash shell on Windows 10, follow these steps:
Open the Settings.
Click on the Update & Security option.
Click on the Developer options from the menu at the left panel.
Under the developer features, click on the Radio button next to Developer mode. Note: Starting with the Fall Creators Update, you don’t need to enable Developer mode. Directly skip to step 9.
A warning dialogue box will appear asking if you are sure you want to turn on the developer mode. Click on the Yes button.
It will start installing the Developer Mode package.
After the installation is finished, you will get a message regarding the developer mode being turned on.
Restart your PC. Also Read: Fix Bash Syntax Error Near Unexpected Token
Once your PC is restarted, open the Control Panel.
Click on Programs.
Under the Programs and Features, click on Turn Windows features on or off.
The below dialogue box will appear.
Check the checkbox next to Windows Subsystem for the Linux option.
Click on the OK button.
Changes will start applying. Once the request is completed and the components are installed, you need to restart your PC by clicking on the Restart Now option.
Once the system restarts, you need to install the Ubuntu distribution for Windows Subsystem for Linux.
Open Command Prompt (admin) and type the following command and hit Enter: Note: Starting with the Fall Creators Update, you can no longer install or use Ubuntu by using the “bash” command.
This will successfully install the Ubuntu distribution. Now you just need to set up the Unix username and password (which can be different than your Windows login credential).
Once finished, you can use the Bash command on Windows by opening the command prompt and using the following command: Also Read: Top 14 Best Graphics Card for Linux
Alternative: Install Linux distros using Microsoft Store
Open Microsoft Store.
Now you have the option to install the following Linux distribution: Ubuntu. OpenSuse Leap Kali Linux Debian Alpine WSL Suse Linux Enterprise
Search for any of the above distros of Linux and click on the Install button.
In this example, we will install Ubuntu. Search for ubuntu then click on the Get (or Install) button.
Once the installation is complete, click on the Launch button.
You need to create a username & password for this Linux distribution (which can different than your Windows username & password).
Now create a new username & password then repeat the password and again press Enter to confirm.
That’s it, now you can use the Ubuntu distro whenever you want by launching it from the Start Menu.
Alternatively, you can launch the installed Linux distro by using the wsl command. As you know, the Linux Bash shell on Windows is not the real Bash shell you find on Linux, so the command line utility has some limitations. These limitations are:
Windows Subsystem for Linux (WSL) is not designed to run the Linux Graphical applications. It will only offer developers a text-based command-line feature to run Bash. Linux applications access the system files and everything that is available on the hard drive so you cannot launch or use the scripts on Windows programs. It also does not support background server software. Not every command-line application works..
Microsoft is releasing this feature with a beta label on it, which means that it is still in progress, and not every intended feature is included and sometimes it may not work properly. Recommended:
Fix This Site Has Been Blocked By Your ISP in Windows 10 How to Get Among Us on Linux Change Your MAC Address on Windows, Linux or Mac Top 10 Best Kodi Linux Distro
But, with the coming times and updates, Microsoft is finding ways to make Linux Bash shell as same as the real Linux Bash shell by focusing on its core functionalities like Bash environment to run tools like awk, sed, and grep, Linux user support, and many more.