Summary
This article is a guide for installing Linux on Windows 11 using the Windows Subsystem for Linux (WSL).
It can be tedious to have to remote into a virtual machine to check Linux commands on the fly. This method creates a Linux distribution as an available "Terminal" option inside the Windows 11 Command Prompt.
Procedure
Checking if there is an existing installation of WSL from the Command Prompt
If WSL has already been installed, skip to the next section: "Installing WSL"
- Navigate to the Command Prompt on a Windows 11 machine (do not Run as Administrator).
- Select the caret icon to expand the list of available terminal options.
- This shows the terminals available by default, assuming that a Linux distribution has not already been not installed via the Command Prompt.

- Another method to check for a distribution is to check the WSL version.
- In the Command Prompt, type "wsl --version".
- A message is returned that either "The Windows Subsystem for Linux is not installed", or the installed version is identified, as shown on the next two images.


Installing WSL
- If WSL is not currently installed, a prompt enables installation by pressing any key. This installs Ubuntu by default.
- If WSL is currently installed, a specific Linux distribution can be installed, as follows.
- To install a specific distribution, do the following steps:
- Type "wsl --list --online"
- This displays a list of available Linux distributions.
- To install one of these versions, you must use the name shown under the NAME column.
- For example, to install Arch Linux, type "wsl --install archlinux"
- For security reasons, some distributions fail to install, such as Kali Linux.
- When the installation completes, a prompt is presented to create a user account and password for future logins to the Linux distribution.

- Once this is complete, the terminal may shift into the newly installed Linux distribution terminal.

- Close the Command Prompt and reopen it.
- The Linux distribution should now be an available terminal option in the drop-down, as shown in the next image.
