Bush on Ubuntu on Windows

How to install native Bash on Ubuntu on Windows 10

Bash on Ubuntu finally arrives to Windows 10, but you need to add the feature on the current version of the operating system. Here's how.

One the most exciting features coming to the Windows 10 Anniversary Update is Microsoft adding Bash on Ubuntu into the operating system.

The software giant is making this move to get more developers to code on any platform but using Windows as their main tool. For this to happen, Microsoft has partnered with the guys behind the Ubuntu Linux, Canonical, to expand the command line tool set in Windows 10.

However, Bash shell doesn’t come loaded by default in the latest preview of the operating system, but you can manually switch on the feature in your PC.

In this guide, I’ll walk you through the steps to install native Bash commands on your Windows 10 build 14316 and later.

How to install Bash on Windows 10

  1. Use the Windows key + I keyboard shortcut to open the Settings app.

  2. Click Update & security.

  3. Click For Developers.

  4. Turn on Developer Mode.

    Developer Mode settings to enable Bash on Windows

  5. Use the Windows key + X to open the Power User menu and click Programs and Features.

  6. Click Turn Windows Features on or off.

  7. On Windows Features, check the Windows Subsystem for Linux (Beta) option.

    Windows Subsystem for Linux (Beta)

  8. Click Ok to install the feature.

  9. Restart your computer.

  10. Once you’re back in Windows 10, use the Windows key + X to open the Power User menu and click Command Prompt (Admin).

  11. Type bash and press Enter.

  12. Type Y and press Enter to download and install the necessary files from canonical.

    Bash Ubuntu for Windows 10

Now you can start using the Bash tools in Windows 10, including Git, Ruby, Python, grep, awk, sed, and many more tools. For commands reference, you can use this Microsoft documentation page.

Bash on Windows 10 is a new feature that runs natively in the operating system. There is no emulator or an Ubuntu virtual machine running on top of Windows. Microsoft has created an infrastructure called Windows Subsystem for Linux (WSL) inside the operating system to make it all work.

Bash is on preview, so don’t expect everything to work perfectly. In addition, Microsoft says that this new tool is only for developers and it’s not intended to be a server solution to host website or similar services.

What do you think about Microsoft bringing Linux tools to Windows 10? Tell us in the comments below.