How To Install the Windows Subsystem for Linux?

The Windows Subsystem for Linux lets developers run Linux environments, including most command-line tools, utilities, and applications directly on Windows. Your PC must be running a 64-bit version of Windows 10 Anniversary Update or later (build 1607+).

More information: here

Check your Windows version

Run the following:

Installation

Enable the « Windows Subsystem for Linux » optional feature using PowerShell:

or by the GUI. First, turn on developer mode:

Wait while installing the package

Once the package is installed, you can restart your machine.

And then run « Bash ».

Bash.exe will be installed from the Windows Store, wait a few minutes…

Next, you need to create a new UNIX username. This account will only be root inside this subsystem.

Done! You have successfully installed Bash on your Windows 10 machine!

Now you can install some packages using « APT-GET » command or you can edit your log files using Vim, Vi, Nano, …

You can browse your Windows files/folders:

 

 

Thanks for reading! You can follow me on Twitter @PrigentNico

About Nicolas 196 Articles
I work as a System Engineer, based in Switzerland with a primary focus on Microsoft technologies. I have 7 years experience in administering Windows Servers. . I am a Microsoft MVP for Cloud & Datacenter Management. I also received the PowerShell Hero 2016 award by PowerShell.0rg. And finally, I am "MCSA: Windows Server 2012" and "Administering & Deploying SCCM" certified.