[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.
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.
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.
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.
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.
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.
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.
Posted in: Windows 10
Other similar articles that may interest you
- How to Install and Apply Custom 3rd Party Boot Screens in Windows without Replacing Default NTOSkrnl.exe File?
- FireGestures: Get Opera Like Mouse Gestures in Mozilla Firefox
- Stratiform: Add-on to Customize Mozilla Firefox UI
- [Tip] Hide / Remove Search Box and Up Button from Windows 8 and 8.1 Explorer
- Hidden Secret Easter Egg in YouTube Videos to Play “Snake” Game
- How to Restore “Close Multiple Tabs” Warning Message (Confirmation Prompt) in Internet Explorer?