How to Run a Windows Subsystem for Linux (WSL) Distro in Windows 10
The Windows Subsystem for Linux (WSL) is a new Windows 10 feature that enables you to run native Linux command-line tools directly on Windows, alongside your traditional Windows desktop and modern store apps.
When you have Windows Subsystem for Linux (WSL) enabled, you can run the default WSL distro or a specified WSL distro to send commands to.
Starting with Windows 10 build 18342 (19H1) and Windows 10 build 18836 (20H1), Microsoft added some new commands that will give you more functionality when using wsl.exe. The commands that existed inside of wslconfig.exe have been added to wsl.exe to allow you to configure your distros more easily.
See also:
This tutorial will show you different ways to run a Windows Subsystem for Linux (WSL) distro in Windows 10.
- Option One: Run a Windows Subsystem for Linux (WSL) Distro from Start Menu
- Option Two: Run a Windows Subsystem for Linux (WSL) Distro from Command Prompt
- Option Three: Run a Windows Subsystem for Linux (WSL) Distro from PowerShell
Running a WSL distribution using its distro-specific app launches that distribution in its own console window.
1. Open All Apps in your Start menu.
2. Perform one of the following actions below for how you want to run the installed WSL distro app (ex: "Debian"). (see screenshot below)
A) Click/tap on the WSL distro app (ex: "Debian").
OR
B) Right click/tap on the WSL distro app (ex: "Debian"), click/tap on More, and click/tap on Run as administrator.
1. Open a command prompt or elevated command prompt.
2. Enter the command you want to use below into the command prompt to run the installed or imported WSL distro app you want. (see screenshots below)
OR
(Run default WSL distro as a specific user)
![]()
wsl -u <Username>
ORwsl --user <Username>
Substitute <Username> with the name of the user you want to run this WSL distro as. Please note that user must exist inside of the WSL distribution. This will not be a Windows 10 user account.
For example:wsl --user brink
OR
(Run specific WSL distro)
![]()
wsl -d <DistributionName>
ORwsl --distribution <DistributionName>
Substitute <DistributionName> with the name of an available WSL distro (ex: "Debian") you want to run.
For example:wsl --distribution Debian
OR
(Run specific WSL distro as a specific user)
![]()
wsl -u <Username> -d <DistributionName>
ORwsl --user <Username> --distribution <DistributionName>
Substitute <Username> with the name of the user you want to run this WSL distro as. Please note that user must exist inside of the WSL distribution. This will not be a Windows 10 user account.
Substitute <DistributionName> with the name of an available WSL distro (ex: "Debian") you want to run.
For example:wsl --user brink --distribution Debian
3. When finished, you can close the command prompt if you like.
1. Open a PowerShell or elevated PowerShell.
2. Enter the command you want to use below into PowerShell to run the installed or imported WSL distro app you want. (see screenshots below)
OR
(Run default WSL distro as a specific user)
![]()
wsl -u <Username>
ORwsl --user <Username>
Substitute <Username> with the name of the user you want to run this WSL distro as. Please note that user must exist inside of the WSL distribution. This will not be a Windows 10 user account.
For example:wsl --user brink
OR
(Run specific WSL distro)
![]()
wsl -d <DistributionName>
ORwsl --distribution <DistributionName>
Substitute <DistributionName> with the name of an available WSL distro (ex: "Debian") you want to run.
For example:wsl --distribution Debian
OR
(Run specific WSL distro as a specific user)
![]()
wsl -u <Username> -d <DistributionName>
ORwsl --user <Username> --distribution <DistributionName>
Substitute <Username> with the name of the user you want to run this WSL distro as. Please note that user must exist inside of the WSL distribution. This will not be a Windows 10 user account.
Substitute <DistributionName> with the name of an available WSL distro (ex: "Debian") you want to run.
For example:wsl --user brink --distribution Debian
3. When finished, you can close PowerShell if you like.
That's it,
Shawn
Related Tutorials
- How to Enable or Disable Windows Subsystem for Linux (Bash on Ubuntu) in Windows 10
- How to Install Windows Subsystem for Linux (WSL) Distros in Windows 10
- How to Set Linux Distribution version to WSL 1 or WSL 2 in Windows 10
- How to Update and Upgrade Windows Subsystem for Linux (WSL) Distro Packages in Windows 10
- How to Unregister and Reset Windows Subsystem for Linux (WSL) Distro in Windows 10
- How to Add User to Windows Subsystem for Linux (WSL) Distro in Windows 10
- How to Remove User from Windows Subsystem for Linux (WSL) Distro in Windows 10
- How to Add, Remove, and List Sudo Users in Windows Subsystem for Linux (WSL) Distro in Windows 10
- How to List Users in Windows Subsystem for Linux (WSL) Distro in Windows 10
- How to Set Default User for Windows Subsystem for Linux (WSL) Distro in Windows 10
- How to Switch User in Windows Subsystem for Linux (WSL) Distro in Windows 10
- How to Change User Password in Windows Subsystem for Linux (WSL) Distro in Windows 10
- How to Reset User Password in Windows Subsystem for Linux (WSL) Distro in Windows 10
- How to Set Default Windows Subsystem for Linux (WSL) Distro in Windows 10
- How to Export and Import Windows Subsystem for Linux (WSL) Distro in Windows 10
- How to Add or Remove Open Linux shell here context menu in Windows 10
- How to Add or Remove Linux in Navigation Pane of File Explorer in Windows 10
- How to List All Available Windows Subsystem for Linux (WSL) Distros in Windows 10
- How to List All Running Windows Subsystem for Linux (WSL) Distros in Windows 10
- How to Terminate Running Windows Subsystem for Linux (WSL) Distro in Windows 10
- How to Access Linux Files in a Windows Subsystem for Linux (WSL) Distro from Windows 10