To open WSL in Windows, press Start, type wsl, and press Enter, or open Command Prompt, PowerShell or Windows Terminal and type wsl then Enter. If WSL is already installed you land in your default Linux distribution's shell within a second or two. If the command is not recognised, WSL is not installed yet and you need to run wsl --install from an administrator PowerShell window and restart the PC. That is the whole answer in practice; the rest of this guide covers install prerequisites, the different ways to launch it, and why it sometimes fails to open.

WSL (Windows Subsystem for Linux) runs a real Linux environment inside Windows without a virtual machine window or a separate boot. You get a Linux terminal alongside your Windows desktop, and you can reach the same files from both sides. Exact menu labels and a few command options can differ slightly by Windows version, edition and region, so treat the wording below as a close guide rather than a script.

What You'll Need

  • A PC running Windows 10 (version 2004 or later) or Windows 11. Older builds need manual enabling and are best updated first.
  • Administrator rights on the machine, at least for the initial install.
  • Virtualisation enabled in the BIOS/UEFI firmware. Most PCs ship with it on, but it is the single most common blocker.
  • An internet connection for the initial download of the Linux distribution and updates.
  • Roughly a few gigabytes of free disk space, depending on the distribution you pick.
  • A backup of anything important before you change BIOS settings or Windows features.

Step-by-Step

  1. Check whether WSL is already installed. Right-click Start and choose Terminal (Admin) or Windows PowerShell (Admin). Type wsl --list --verbose and press Enter. If you see a table with a distribution name, WSL is present and you can skip to step 5. If you get an error saying the command is not found or that no distributions are installed, continue below.
  2. Install with one command (Windows 10 2004+ and Windows 11). In the same administrator window run wsl --install. This enables the required Windows features, downloads the Linux kernel, sets WSL 2 as the default, and installs Ubuntu unless you name another distribution. Wait for it to finish; it can take several minutes.
  3. Restart the computer. A reboot is required before the new Windows features become active. Save your work first.
  4. Complete the first-run setup. After the restart, a terminal window may open by itself and ask you to create a UNIX username and password. This account is separate from your Windows login and is used for sudo inside Linux. The password does not echo as you type, which is normal. If the window does not appear, launch the distribution from the Start menu.
  5. Open WSL from the Start menu. Press the Windows key, type the distribution name (for example Ubuntu) or wsl, and press Enter. This is the simplest method once installation is done.
  6. Open WSL from a terminal. Launch Windows Terminal, Command Prompt or PowerShell (no admin rights needed now) and type wsl. Press Enter. You are dropped into the default distribution's shell in your Linux home directory.
  7. Open WSL from File Explorer. Type wsl into the address bar of any File Explorer window and press Enter. A terminal opens at that folder's location, which is handy when you want to run Linux commands against a specific Windows directory.
  8. Open a second distribution or a specific one. If you have more than one installed, run wsl -d <name> using the name shown in wsl --list --verbose. To install another distribution, use wsl --install -d <name> with a name from wsl --list --online.
  9. Confirm everything is healthy. Inside the Linux shell run uname -a to see the kernel and cat /etc/os-release to confirm the distribution. From Windows, wsl --status shows the default version and kernel information.

Common Mistakes

  • Running the install command without administrator rights. wsl --install needs elevation. If it fails immediately, close the window and reopen it as administrator.
  • Skipping the restart. The features are enabled but not loaded until you reboot, so the command keeps reporting that WSL is not installed.
  • Confusing the Linux password prompt with a broken terminal. Nothing appears on screen while typing the UNIX password. Type it blind and press Enter.
  • Editing Linux files from Windows tools. Use the Linux shell or the \\wsl$ path in Explorer rather than opening them with Windows editors in the distribution's internal folders, which can corrupt permissions and file metadata.
  • Assuming WSL means a graphical desktop. WSL gives you a terminal by default. Individual Linux GUI apps can run, but there is no full Linux desktop session unless you set one up yourself.
  • Installing a second distribution accidentally by running wsl --install again when one already exists. Check with wsl --list first.

Tips

  • Set your preferred distribution as default with wsl --set-default <name> so plain wsl always lands where you expect.
  • Use Windows Terminal as your host app. It gives you tabs for PowerShell, Command Prompt and one or more WSL distributions in a single window.
  • Your Windows drives appear under /mnt/c, /mnt/d and so on. Your Linux files are reachable from Explorer at \\wsl$\<distribution>.
  • Keep WSL updated with wsl --update from an administrator terminal; the kernel and WSL itself ship updates separately from Windows Update in some versions.
  • Run wsl --shutdown if the subsystem becomes unresponsive. It stops all distributions and virtual machines without deleting anything.
  • Pin your distribution to the taskbar or Start so opening it becomes a single click.

Troubleshooting

Work through these in order, simplest and safest first.

  1. "WSL is not recognised" after installing. Restart again, then check that the features are on: open Turn Windows features on or off from the Start menu search and confirm Windows Subsystem for Linux and, for WSL 2, Virtual Machine Platform are ticked.
  2. Virtualisation errors. If the message mentions that virtualisation is not enabled or that the virtual machine platform could not start, enter your PC's firmware settings at boot and enable Intel VT-x, AMD-V or SVM, plus any IOMMU option your vendor offers. Save and exit. Some systems also need Hyper-V or the hypervisor platform left enabled in Windows features.
  3. Error 0x80370102 or similar start failures. These point at virtualisation or hypervisor conflicts. Update Windows, confirm virtualisation is on, and check whether another hypervisor such as third-party virtual machine software is reserving the CPU features WSL needs.
  4. The terminal opens and closes instantly. Run wsl -d <name> -- echo test from PowerShell to see the actual error. Often the distribution's filesystem is corrupt, which the next step addresses.
  5. A distribution that will not start. Try wsl --update first. If that fails, wsl --unregister <name> removes it completely. This deletes everything inside that distribution, including your files and installed packages, so export a backup with wsl --export first if the data matters. Then reinstall it with wsl --install -d <name>.
  6. Corporate or managed PCs. Group policy or endpoint security software can block Windows features, virtualisation or downloads. In that case the change has to come from whoever administers the machine; there is no user-side workaround.
  7. Everything looks fine but WSL 1 is being used. Run wsl --set-default-version 2 to make new installs use WSL 2, and wsl --set-version <name> 2 to convert an existing one.

Frequently Asked Questions

Is WSL the same as a Linux virtual machine?

No. WSL 2 uses a lightweight virtual machine behind the scenes, but you interact with it as a terminal integrated into Windows, with files reachable from both sides. You do not manage a full guest operating system.

Do I need to install a Linux distribution separately?

Not usually. wsl --install installs Ubuntu by default. You only need wsl --install -d if you want a different distribution.

Where are my WSL files stored?

Each distribution lives in its own virtual disk. Reach them from Explorer via the \\wsl$ path, or from inside Linux in your home directory. Do not move or rename that virtual disk while WSL is running.

Can I open WSL without administrator rights every time?

Yes. Only installation and updates need elevation. After that, Start menu, Terminal and Command Prompt launches work as a normal user.

Does opening WSL delete or change my Windows files?

No. Installing and launching WSL does not touch your Windows files. Only wsl --unregister deletes data, and only inside the named distribution.

Why does the terminal show me a different username?

That is your UNIX account, created during setup and independent of your Windows account. You can create additional users inside the distribution if you need them.