[Tip] How to Install and Run Native Bash Shell on Ubuntu on Windows 10

Apart from many new features and changes, Windows 10 Anniversary Update comes with another interesting feature which is called "Bash on Ubuntu on Windows". Now Windows 10 comes with real, native Bash shell which provides a familiar Linux environment to allow Windows 10 users to run common command-line utilities such as grep, vi, awk, etc, run shell scripts and run Linux software and apps.

Microsoft calls it as "Windows Subsystem for Linux (WSL)" which runs a genuine Ubuntu user-mode image which allows Windows 10 users to run native Bash shell and execute bash scripts, run command-line tools directly on Windows. This Bash shell also supports Windows filesystem so you can access Windows filesystem within Bash shell and directly work on your documents.

Don't consider this Bash shell as any virtual machine or container running on Windows 10. Its a real native Bash environment to run Linux apps and commands on Windows just like you run Windows software programs using Wine on Linux.

But its only available in 64-bit (x64) versions of Windows 10 operating systems. So if you are using a 32-bit (x86) build of Windows 10, you are out of luck.

Bash_Shell_Ubuntu_Windows_10.png

By default, this Bash shell doesn't come preinstalled in Windows 10. You need to install it manually. If you are interesting in trying out this new feature, you can follow these simple steps to install and enable native Bash on Ubuntu on Windows 10:

1. First of all you'll need to enable Developer Mode using Settings app. Open Settings app from Start Menu or press WIN+I keys together to directly launch Settings app.

Now go to "Update & Security -> For Developers" page and select "Developer Mode" option. It'll ask for confirmation, click on Yes button. It'll take a few moments in installing Developer Mode package. You may be asked to reboot your computer.

Enable_Developer_Mode_Windows_10.png

2. After enabling Developer Mode, you'll need to install Windows Subsystem for Linux (WSL) package. To install it, open Control Panel, go to "Programs and Features" and then click on "Turn Windows features on or off" link.

Turn_Windows_Features_On_Off.png

Now enable "Windows Subsystem for Linux" option and click on OK button. It'll take a few moments in installing the package and will ask you to restart the computer to take effects.

Install_Windows_10_Subsystem_Linux_Program.png

3. After reboot, you can open Bash shell by searching for bash using Cortana search box or directly run bash command using Command Prompt or RUN dialog box. When you'll run Bash for the first time, it'll show you terms of service, press Y key to accept the terms.

Bash_Ubuntu_Windows_10_License_Terms.png

4. Now the shell will download "Bash on Ubuntu on Windows" app from Windows Store. It'll take a few minutes in downloading the app package. After extracting the files, it'll ask you create a new UNIX user account, so create a new account by following the instructions.

Installing_Bash_Ubuntu_Windows_App_Package.png

5. That's it. Now you'll have a real, native Bash shell running in Windows 10. You can run Linux command-line tools, Linux apps, shell scripts in this shell.

It'll add an entry for the Bash shell in Start Menu for quick access.





Share this article: Facebook | Twitter | Google+ | Reddit | Tell a friend

Posted in: Windows 10


Other similar articles that may interest you


Comments

  • Hi VG, be sure to mention that this is only available on 64-bit Windows.

  • VG

    ^^ Right. Added.

  • Hi VG, its possible to Install Native Bash Shell offline. please do something for offline installer.

    ^.^ thanks you

  • VG

    ^^ Sorry but I dont think its possible to install it offline.

  • Hi VG where is the location of root directory ?

  • VG

    ^^ C:\Windows\System32\bash.exe

  • Thanks VG! But I want to know that if am create any directory (folder) , a file like an example .html any file type format, where I am found files and folders in my windows files (like ubuntu file manager). it's not here in root .

  • Nice! Now I can do some of my android stuff without needing to dual boot Windows and Ubuntu

Leave a Comment

(required)