How to install Windows Subsystem for Linux?

  1. Turn on Developer Mode:
    • Open Settings -> Update and Security -> For developers
    • Select the Developer Mode radio button
  2. Enable the Windows Subsystem for Linux feature:
    • From Start, search for “Turn Windows features on or off” (type ‘turn’)
    • Select Windows Subsystem for Linux (beta)
  3. Enable the Windows Subsystem for Linux feature (command-line)
    $ Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
  4. Run Bash on Windows:
    $ bash

The installation location is %localappdata%\lxss\

See MSDN.