How To Enable Linux Bash in Windows 10 - Windows Subsystem for Linux (WSL)

How To Enable Linux Bash in Windows 10 - Windows Subsystem for Linux (WSL)

Looking for:

Linux bash shell on windows 10. How to Use Linux Bash Shell on Windows 10 













































   

 

Linux bash shell on windows 10. How to Enable the Linux Bash Shell in Windows 10



 

One of the really cool things about Windows 10 is that Microsoft has baked a full-blown Ubuntu-based Bash shell into the operating system. For those who might not be familiar with Bash, it is a text-based Linux command line environment. In other words, it is like having Linux on Windows, and now you can easily run Bash on Windows The Bash shell has actually been a part of Windows 10 for a while, but the technique used for enabling Bash on Windows 10 has changed over time.

For the purposes of this article, I am going to assume that you are running Windows 10 with the Creators Update , or a newer version. If you are not sure which Windows 10 build you are using, then right click on the Start menu, and choose the System command from the shortcut menu.

The resulting About Windows 10 screen lists various statistics about the operating system and the hardware that it is running on. Take a look at the OS Build, which you can see in the figure below. The build number I am basing this article is If your copy of Windows has an older build number a lower number , then just run Windows Update to bring Windows up to date.

Once you have checked the OS Build number, then the next step in the process is to install the Windows Subsystem for Linux. To do so, open an administrative PowerShell window, and run the following command:.

You can see what this looks like in the next figure. You will also notice that installing this feature requires you to reboot your computer.

Once the Windows Subsystem for Linux is installed, you are going to need to install Ubuntu user mode. For right now, you will have to enable Developer Mode, and then use the Command Prompt window to launch Bash. Enabling Developer Mode is a simple enough process. When you arrive at the Windows Update screen, click on the For Developers link. Next, you will have to turn on Developer Mode.

It takes a minute or two for Developer Mode to be enabled. Once the process completes, go ahead and close the Settings window. The next thing that you will need to do is to open an administrative Command Prompt window.

Microsoft has removed the Command Prompt option from the Start menu. The easiest way to open an administrative Command Prompt window is to type the word Command into Cortana.

You should see the Command Prompt listed among the search results. Right click on this result, and choose the option to run the Command Prompt as an administrator, as shown in the figure below. When the Command Prompt window opens, type the word Bash, and press Enter. When you do, you will see a message saying that you are about to install Ubuntu on Windows, and that this is a beta feature. As you can see in the figure below, Windows gives you one last chance to change your mind about installing Bash.

If you want to continue, then press Y. After you press Y, Windows will download Ubuntu from the Windows app store. The interesting thing about this is that the download happens from within the Command Prompt interface, rather than using the usual Windows Store app.

When the download completes, it takes Windows a few minutes to extract the Bash files. When the extraction process finally completes, you will see a prompt telling you to enter a new UNIX username. This name will be used by the default UNIX user account, and the name that you choose does not have to match your Windows user name.

The reason for this is that Windows maintains a completely separate authentication environment for Bash. As you have probably already guessed, Windows also prompts you to enter and confirm a password to be used with the Bash on Windows 10 environment.

Entering a password is a little bit disorienting, because nothing happens on screen to indicate that your key strokes are being registered. Finally, you are taken into the Bash shell, which you can see in the next figure. There are two things to pay attention to in the screen capture above. First, the screen capture contains a message indicating that documentation is available at this Microsoft site.

The second thing to pay attention to is the message saying that if you want to run a command as Administrator or root, as it is referred to in the Linux world , then you will need to use the word sudo. The setup process installs a Start menu option that you can use in the future.

Learn how to send and receive faxes through the built-in Windows Fax and Scan module and other online fax services. These online fax services are…. Read More ». After this, I review some of the top sales intelligence tools.

Many things could cause various JVM errors. Parameter passing techniques dictate how a programming language passes a variable to a function. Your email address will not be published. Windows downloading Ubuntu from the Windows Store When the extraction process finally completes, you will see a prompt telling you to enter a new UNIX username.

Bash shell As you have probably already guessed, Windows also prompts you to enter and confirm a password to be used with the Bash on Windows 10 environment. Logged into Bash There are two things to pay attention to in the screen capture above. Read Next. These online fax services are… Read More ». About The Author. Brien Posey Brien Posey is a freelance technology author and speaker with over two decades of IT experience.

Prior to going freelance, Brien was a CIO for a national chain of hospitals and healthcare facilities. In addition, Brien has worked as a network administrator for some of the largest insurance companies in America.

Leave a Comment Cancel Reply Your email address will not be published. Scroll to Top.

 


Install WSL | Microsoft Docs.



  Step 2: Download a Linux system from the Windows store. Step 3: Run Linux inside Windows    


Comments

Popular posts from this blog

- Download Microsoft USB/DVD Download Tool - MajorGeeks

Microsoft Windows 10 Home, 64bit, English, OEM (DVD) (KW)

Adobe Pagemaker Adobe Creative Team: : Books.