
OutputFor information on key differences with WSL 2 please visit https: / /aka. Once you run the command you’ll see output similar to this: exe /online / enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart Run the following command to enable the WSL feature: PS C:\Windows\system32> dism. You’ll use the Windows Deployment Image Servicing and Management tool to enable optional Windows features that are disabled by default.

Once you’ve done this, a PowerShell window will open. You’ll need to right click on PowerShell and click on Run as Administrator. Open up the Start menu and search for PowerShell. These services come with Windows but are turned off by default until you decide you need them. The first thing you need to do is enable specific Windows services so that you can run the WSL. Step 1 - Enabling Windows Services for the WSL If you are not installing the WSL on a virtual machine, you can skip this warning entirely.

In order to follow along with this guide, you’ll need: This will provide you with a Linux programming environment that is native to Windows. In this tutorial you’ll enable the WSL, install Ubuntu 20.04 onto your workstation using the WSL, and install Microsoft’s new Windows Command Line to access your Ubuntu 20.04 installation. The WSL accomplishes this by using Microsoft’s built in virtualization software called Hyper-V to run.

The WSL natively integrates with most applications on your workstation, allowing for a Linux-like development experience on Windows. The Windows Subsystem for Linux 2, WSL 2 or WSL for short, is a tool on Microsoft Windows 10 that allows developers to run a Linux environment directly on Windows without any modifications, secondary Virtual Machine software, or dual-boot setups.
