The Windows Subsystem for Linux lets developers run Linux environments, including most command-line tools, utilities, and applications directly on Windows, unmodified, without the overhead of a virtual machine.
Choose your favorite Linux distributions from the Windows Store.
- Run common command-line utilities such as grep, sed, awk, etc.
- Run Bash shell scripts and Linux command-line applications including:
Tools: vim, emacs, tmux
Services: sshd, MySQL, Apache, lighttpd
- Install additional Linux tools using the distribution's built in package manager (apt-get, for example).
- Invoke Windows applications from the Linux console.
- Invoke Linux applications on Windows.
So let's see how this works, for this guide I tested this on a Windows 10 Insider Preview build version 10.0.17661.1001, however all you need to test this is any version of Windows 10 from Fall Creators Update (or later), and that means any version after Windows 10 1703.
Step 1. Add the WSL feature
In Windows Control Panel, select Programs and Features, select Turn Windows features on or off. Scroll down to Windows Subsystem for Linux, and enable it.
windows subsystem for linux.png 58.85KB 0 downloads
Reboot when prompted.
Step 2. Open the Microsoft Store and search for Linux
search for linux.png 274.73KB 0 downloads
Step 3. Select a Linux Distro in the Apps list
Select a Linux Distro in the apps list or click on Show All to see all available
linux distros.png 378.83KB 0 downloads
Step 4. After selecting a Linux Distro, click on Get
Get.png 315.29KB 0 downloads
Step 5. Pin to start or Launch
After it is installed, you'll get a toast notification stating it's installed and ask you to Launch or Pin to Start. If you choose Pin to Start the Distro will be listed in your start menu.
pin to start.png 898.72KB 0 downloads
Step 6. Launch the Distro
On first launch you'll see the Distro is installing
ubuntu installing.png 8.02KB 0 downloads
If you get "Installation Failed! Error: 0x8007019e", then make sure you've completed Step 1.
After installing the Distro, you'll be prompted to enter a username and password
prompting for username password.png 20.57KB 0 downloads
and it's done !
ubuntu installed.png 49.34KB 0 downloads
it even has vi !
vi is installed.png 27.39KB 0 downloads