Windows Subsystem for Linux (WSL) lets you run a real Linux distribution—commonly Ubuntu—directly on Windows without a full dual-boot setup. On Windows 11, or Windows 10 version 2004 and higher (Build 19041+), the shortest path is an elevated PowerShell command: wsl --install, then restart, then create your Linux username when Ubuntu first launches.
For a full setup path, follow how to install Windows Subsystem for Linux; for a first distro choose Windows Subsystem for Linux Ubuntu or WSL Arch Linux. If wsl -l -v is empty, see WSL has no installed distributions; for GUI apps, use WSL Linux GUI.
Success looks like this: after reboot, Ubuntu opens, you set a UNIX username and password, and wsl --list --verbose shows your distro with VERSION set to 2. If WSL reports that no distributions are installed, virtualization is disabled, Virtual Machine Platform is off, or install hangs near 0%, use the troubleshooting section below before any unregister or reset steps.

What WSL Does—and What It Does Not
WSL gives Windows developers and power users Linux shells, package tools, and many Linux utilities beside Windows apps. Microsoft documents that you can install distributions such as Ubuntu, Debian, openSUSE, and others, then run Linux commands without the overhead of a traditional full virtual machine workflow for everyday CLI work.
WSL is not a complete replacement for every Linux desktop scenario. Some workloads still need a native Linux install, dual boot, or a conventional VM. Treat WSL as a Linux environment on Windows, not as “Linux replacing Windows.”
Check Prerequisites Before You Install
Confirm your Windows build:
Press Win + R, type
winver, and press Enter.Confirm Windows 11, or Windows 10 version 2004 / Build 19041 or newer for the modern
wsl --installflow.
On older Windows 10 builds, Microsoft directs you to the manual WSL installation steps instead of relying on the one-command installer alone.
Also plan for administrator rights, a restart during setup, and CPU virtualization available in firmware (often labeled Intel VT-x, AMD-V, or SVM).
Install WSL With the Official One-Command Path
Right-click Start → open Windows PowerShell (Admin) or Terminal (Admin).
Run:
wsl --install
According to Microsoft Learn, this enables the required Windows features, installs the latest WSL Linux kernel support path used by current installs, sets WSL 2 as the default for new distros, and installs Ubuntu by default (unless you choose another distribution).
Restart Windows when prompted.
After reboot, open Ubuntu from the Start menu and wait while the distro finishes first-run setup.
Create a Linux username and password when asked. The password will not echo as you type; that is normal.
Expected result: an Ubuntu shell prompt appears under your new Linux user.
If wsl --install only prints WSL help text, WSL is already present. Install a distribution explicitly:
wsl --list --online wsl --install -d Ubuntu
Use an exact name from the online list. Do not invent distro names.
Verify WSL 2 and Your Distro Status
wsl --list --verbose
Expected result: at least one distribution is listed, STATE is Running or Stopped, and VERSION is 2 for a current default install.
wsl --status wsl --version
To open your default distro:
wsl
Inside Linux:
uname -a lsb_release -a
Choose a Different Distro When You Need One
wsl --list --online
wsl --install -d Debian
Replace Debian with an exact name from the list. If install progress sticks near 0.0%, Microsoft’s guidance includes:
wsl --install --web-download -d Ubuntu





