How to install the Windows Subsystem for Linux (WSL) on Windows 10

Body

The Windows Subsystem for Linux (WSL) is a Windows 10 feature that enables running native Linux command line tools directly on Windows 10.

Note: This feature requires 64 bit Windows 10 and build 16215 or later.

  1. The first thing that must be done is to enable the Windows Subsystem for Linux. This is done via the Control Panel in the sidebar of Programs and Features. Click on Turn Windows features on or off

  1. Click on Windows Subsystem for Linux to select it and then click on OK. This will require a reboot.

  1. After the reboot, proceed to the Microsoft store – either from an icon on the taskbar or through the Start Menu. Enter “Linux” in the search box:

  1. There are several Linux versions available for downloading; this example will cover the Ubuntu version which will install the Bash Shell. Click on the Ubuntu icon.

  1. Click on Get to initiate the download and installation.

  1. Click on Launch to bring up the Ubuntu command line window.

  1. The installation will finalize and a username and password will need to be established; this will be the default log in account when using the shell.

  1. It is recommended that the shell be updated with the following commands in the sequence shown:

sudo apt update

sudo apt upgrade

which will require the password set up in the previous step.

  1. The Bash Shell may be started by the Ubuntu icon in the Start Menu, by entering in the command bash in either a PowerShell or Command Prompt window, or entering in the command bash in the menu Run dialog box. To exit the shell session, enter in either the command exit or logout, or simply close the window.

Details

Details

Article ID: 73285
Created
Fri 3/8/19 9:18 AM
Modified
Sun 3/1/20 2:18 PM