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:

PS > Winver.exe

Installation

Enable the “Windows Subsystem for Linux” optional feature using PowerShell:

PS > Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

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:

cd /mnt/c/Windows/
ls

 

 

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

About Nicolas 282 Articles
I work as an IT Production Manager, based in Paris (France) with a primary focus on Microsoft technologies. I have 10 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 "MCSE: Cloud Platform and Infrastructure", "MCSA: Windows Servers", "Administering & Deploying SCCM", and CheckPoint CCSA certified.