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.
Use the Windows key + I keyboard shortcut to open the Settings app.
Click Update & security.
Click For Developers.
Turn on Developer Mode.
Use the Windows key + X to open the Power User menu and click Programs and Features.
Click Turn Windows Features on or off.
On Windows Features, check the Windows Subsystem for Linux (Beta) option.
Click Ok to install the feature.
Restart your computer.
Once you’re back in Windows 10, use the Windows key + X to open the Power User menu and click Command Prompt (Admin).
Type bash and press Enter.
Type Y and press Enter to download and install the necessary files from canonical.
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.