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

Introduction

The Windows Subsystem for Linux (WSL) is a Windows feature that enables running native Linux command line tools directly on Windows 11. This guide will go over how to install and set up WSL on Windows 11 devices.

 

Procedure

Step 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

Partial view of a Windows Control Panel interface highlighting options like "Control Panel Home," "View installed updates," and "Turn Windows features on or off."

 

Step 2

Click on Windows Subsystem for Linux to select it and then click on OK. When it finishes, click Don't Restart.

A Windows dialog box for managing features, displaying a list of system features with checkboxes for enabling or disabling them.

 

Step 3

Start an ABR session and run Powershell as an administrator, or if you are already an admin on the device, just run Powershell as an admin. Type wsl.exe --install into the shell. Allow the install to finish, and then restart your PC.

If you are not familiar with how to use ABR, follow this guide: https://uwyo.teamdynamix.com/TDClient/1940/Portal/KB/Article/155122/Admin-By-Request

A Windows search screen displaying "Windows PowerShell" with options to run as administrator, featuring a blue sky background.

A Windows PowerShell terminal displaying an administrative command to install WSL (Windows Subsystem for Linux) with a dark blue background.

 

Step 4

After the reboot, proceed to the Microsoft Store. Enter Linux in the search box.

A screenshot of the Microsoft Store displaying "ROBLOX," featuring animated characters and a search bar at the top. The text promotes exploring virtual worlds with friends.

 

Step 5

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

Screenshot of the Microsoft Store's Apps section, showcasing six Linux-related applications with logos, ratings, and price information.

 

Step 6

Click on Get to initiate the download and installation.

Screenshot of the Microsoft Store showcasing the Ubuntu app with an orange logo, a star rating of four out of five, and a description of its capabilities.

 

Step 7

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

Screenshot of the Microsoft Store showing that the Ubuntu app is installed, with a four-star rating and description of its features.

 

Step 8

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.

Terminal window displaying the Ubuntu installation process with prompts to create a UNIX username.

 

Step 9

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.

 

Step 10

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 Run dialog box. To exit the shell session, enter in either the command exit or logout, or simply close the window.

Was this helpful?
0 reviews