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.
- 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
- Click on Windows Subsystem for Linux to select it and then click on OK. This will require a reboot.
- 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:
- 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.
- Click on Get to initiate the download and installation.
- Click on Launch to bring up the Ubuntu command line window.
- 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.
- 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.
- 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.