How to Use Bash on Windows 10

Recently, Microsoft came out at their yearly Build conference and stated that they’re bringing the Bash shell to Windows 10 with the help of Linux developer Canonical. This news has struck a chord in not only the Windows community but the Linux community as well. Everyone wants to know what it’s like, how to get it and why it exists.

That’s why we’ve created this: it’s a guide on exactly how you can get Bash working on your Windows 10 installation today. It’s a fairly tedious process, but if you’re a geek, you might want to give this one a go.

Note: Bash on Ubuntu on Windows (the Windows subsystem for Linux) only supports the 64-bit version of Windows. If you use any other version, this method will not work.

Before you can try out the new Windows subsystem for Linux on Windows 10, you’ll need to join the Windows insider program (if you haven’t already). This can be done by visiting this page, and creating an account.

bash-windows-10-windows-insider-program

Be sure to read anything and everything Microsoft has on these pages in relation to the Insider program, as there may be other things that interest you besides just the new Linux subsystem.

Now that you’ve joined the Insider program, it’s time to sign in. Open the Start menu, and start typing “settings.” You should see the system settings icon show up. Click on it to launch it.

Once you’re in Settings, use the search box and type “Advanced Windows Update Options,” and then click on it to go there. Inside this Advanced options area, scroll down and look for “Get Insider Preview builds,” and click the “Get started” button.

bash-windows-10-choose-account

You’ll be prompted to sign in to your Microsoft account. Do so. After that, you’ll notice a slider appear. Drag this slider all the way to the far right.

bash-windows-10-insider-update-slider

With Insider enabled, it’s time to enable something else: Developer mode. Open the Start menu and start searching for “developer mode.” You’ll notice something appear called “For developers settings.” Click on it.

bash-windows-10-developer-mode

Now that you’re inside the “For Developers” area, click the radio button next to “Developer mode.” This will enable your Windows 10 machine to use the latest development features. After the setting is clicked, close the window.

Now that all of the prerequisites have been met, it’s time to actually install the ability to use the Windows subsystem for Linux . Open the Start menu and start searching for “Check for updates.” After that, click on an icon with “Check for updates” next to it.

bash-windows-10-check-for-updates

This will launch the Windows Updates area. Inside this update area, click the “check for updates” button to start the update process. Once clicked, Windows 10 will go out and get all of the latest development patches and get them ready to install.

When the downloading is complete, restart your PC to install the updates.

Now that your PC has been rebooted and the updates installed, it’s time to enable the Bash feature. Go to the Start menu and start searching for “features.” This will return a few results. Look for the “Turn Windows features on or off” result and click on it to launch the window.

bash-windows-10-turn-on-features

Inside the Windows Feature window, scroll all the way to the bottom and look for “Windows subsystem for Linux (beta).” Once there, just check the box. This will enable the new Bash feature. After that just reboot your machine and call it good.

bash-windows-10-bash-on-ubuntu-on-windows

Bash can be launched easily. Just open the Start menu, and search for “Bash.” This will return “Bash on Ubuntu on Windows” as a result. Launch it. From here you’ll be prompted to download some things as well as accept a license agreement. Do it and you’ll be set to use the new subsystem.

bash-windows-10-install-ubuntu

Inside this shell, you’ll be able to run basically any Linux binary, install programs and use just about every Bash-related thing you can think of.

A Linux subsystem on Windows. What a time to be alive! With Microsoft and Canonical coming together, there is most certainly some huge potential coming in the future. Support for Docker on Windows server? Installing alternative Desktop environments on Windows? Using first-class Linux tools right in Windows? The possibilities are endless!

Linux and Windows users: How do you feel about Bash on Windows? Do you think it’s a good decision or a bad decision? Tell us below!

Image credit: andremachado.blog.br

Leave a Reply

Yeah! You've decided to leave a comment. That's fantastic! Check out our comment policy here. Let's have a personal and meaningful conversation.