Last updated on November 12th, 2026 at 12:47 pm
Your course or project says to open bash and run apt or gcc, and you would rather not set up a virtual machine or dual boot. On Windows 11, open an administrator terminal and run wsl --install. After a restart, Ubuntu opens and asks you to create a Linux username and password. The one thing to check beforehand is that virtualization is turned on in your PC’s firmware.
Check three things before you install
- A supported Windows version. Microsoft’s Install WSL page lists Windows 11, or Windows 10 version 2004 (build 19041) and later. No particular Windows 11 edition is named, so Home and Pro use the same steps. On Windows 10, see installing WSL on Windows 10.
- Virtualization turned on. WSL 2 runs Linux in a lightweight virtual machine, so the CPU’s virtualization feature must be enabled in the BIOS or UEFI settings. To check, open Task Manager, select Performance > CPU and look for the Virtualization entry, which on most PCs shows whether it is enabled. If it is not enabled, enable virtualization in Windows 11 first. Microsoft also notes that WSL 2 needs a CPU with Second Level Address Translation (SLAT), which very old processors such as the Intel Core 2 Duo lack.
- An administrator account and internet access. The command turns on Windows features and downloads Linux, so it needs both.
Run the install command
- Right-click Start and choose Terminal (Admin), or search for PowerShell, right-click it and choose Run as administrator. Click Yes at the User Account Control prompt.
- Type
wsl --installand press Enter. - Wait while it enables the features WSL needs and downloads Ubuntu, the default distribution. Progress shows in the window.
- When it finishes, restart the PC.
New installs use WSL 2, the current architecture, by default. If you want a different distribution from the start, use wsl --install -d <DistroName> instead; the section on distributions below shows how to find the names.
Create your Linux user after the restart
After you sign back in, Ubuntu opens in a console window (if it does not, look for Ubuntu in the Start menu). The first launch takes a little while as files decompress; later launches should take less than a second.
- Enter a username. It has nothing to do with your Windows name, so a short lowercase name such as jordan is fine.
- Enter a password, then type it again. Nothing appears while you type, not even dots. That is normal Linux behavior.
- Bring the system up to date with
sudo apt update && sudo apt upgradeand enter your new password when asked.
This account is the Linux administrator for that distribution and can run sudo commands. Each distribution you install gets its own account, and Windows does not update Linux packages for you, so run the update command now and then. To change the password later, run passwd inside Linux.
Confirm what was installed
Back in PowerShell or Terminal, these commands from Microsoft’s basic WSL commands tell you whether everything landed:
| Command | What it shows |
|---|---|
wsl --list --verbose (or wsl -l -v) | Each installed distribution, whether it is running or stopped, and whether it uses WSL 1 or WSL 2 |
wsl --status | Your default distribution, default distribution type and kernel version |
wsl --version | Version numbers for WSL and its components |

Seeing Ubuntu with version 2 in the list means the install worked. Windows Terminal also creates a profile for each new distribution, so you can open Ubuntu in its own tab beside PowerShell.
Pick a different distribution or default
- See what is available:
wsl --list --online(short formwsl -l -o). - Install one by the name shown in that list:
wsl --install -d <DistroName>, for example with Debian as the name. - Make it the one that opens when you type
wsl:wsl --set-default <Distribution Name>.
To make sure new distributions use WSL 2, run wsl --set-default-version 2. An existing one can be switched with wsl --set-version <Distro> <1|2>, but Microsoft warns the conversion can be slow and may fail, so back up first. Distributions are also listed in the Microsoft Store. For Ubuntu specifics, see installing Ubuntu on Windows 11.
If the command shows help text or stalls
wsl --install on its own only works when WSL is not installed at all. If you see a page of help text instead, WSL is already present: run wsl --list --online and then wsl --install -d <DistroName>. If the download sits at 0.0%, run wsl --install --web-download -d <DistroName>, which downloads from an online source rather than the Microsoft Store.
When the command will not enable the features itself, turn them on by hand:
- Search Start for Turn Windows features on or off and open it.
- Check Windows Subsystem for Linux and Virtual Machine Platform, then click OK.
- Restart, then run
wsl --install -d <DistroName>again.
The Virtual Machine Platform part can also be enabled from an administrator PowerShell window with dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart, followed by a restart.
Install errors and what they mean
These come from Microsoft’s WSL troubleshooting page:
| Error | Cause | Fix |
|---|---|---|
| 0x80370102: a required feature is not installed | Virtualization is off in firmware, Virtual Machine Platform is missing, or the hypervisor is disabled at boot | Turn on virtualization and Virtual Machine Platform, restart. In an admin PowerShell run bcdedit /enum | findstr -i hypervisorlaunchtype; if it says Off, run bcdedit /set hypervisorlaunchtype Auto and restart |
| 0x8007019e | The Windows Subsystem for Linux optional component is not enabled | Check Windows Subsystem for Linux in Turn Windows features on or off |
| 0x80070003 | Distributions must live on the system drive (usually C:) | Settings > System > Storage > Advanced storage settings > Where new content is saved, and choose C: |
| The term ‘wsl’ is not recognized | The optional component is missing | Enable Windows Subsystem for Linux as above |
| Has no installed distributions | The distribution was never opened, or you are in the built-in Administrator account | Open the distribution once from Start; use your normal account |
| 0x8000FFFF unexpected failure | Many causes, including permissions or an outdated WSL | Run wsl --update, then wsl --shutdown; if it persists, run SFC /SCANNOW and DISM /Online /Cleanup-Image /RestoreHealth in an admin prompt |
Microsoft also says third-party hypervisors such as VirtualBox need a version that supports Hyper-V (VirtualBox 6 or later) or should be turned off, so keep VirtualBox on Windows 11 up to date if you use both.
Move files between Windows and Linux
- From Linux, your Windows drives are mounted under
/mnt, so the C: drive is/mnt/c. - From Windows, type
\\wsl$in the File Explorer address bar to browse each distribution’s files. - From a Linux folder, run
explorer.exe .(with the period) to open that folder in File Explorer.
Where you keep a project affects speed. Microsoft’s WSL setup guidance recommends storing files on the same system as the tools you use. Jordan, for example, is compiling C homework with Linux tools, so the project belongs in /home/jordan/Project rather than /mnt/c/Users/Jordan/Project, where every compile would cross between file systems and run noticeably slower.
Run Linux apps with a window
WSL 2 can also run graphical Linux apps. A fresh wsl --install on Windows 11 is ready for them, and installing the current graphics driver for your GPU adds hardware-accelerated graphics; on an older WSL install, run wsl --update and then wsl --shutdown. Linux apps you install then appear in the Start menu under the distribution’s name, per Microsoft’s guide to Linux GUI apps.
Keep WSL updated and under control
wsl --updateupdates WSL itself to the latest version.wsl --shutdownstops every distribution and the WSL 2 virtual machine, useful when something hangs or after editing the .wslconfig settings file.wsl --terminate <Distribution Name>stops just one.wsl --unregister <DistributionName>removes a distribution. Everything inside it, including files and installed software, is permanently deleted, so copy out anything you need first.
Removing WSL completely takes a few more steps, covered in uninstalling WSL in Windows 11.
Common questions about installing WSL
I forgot my Linux password. Do I have to reinstall?
No. In PowerShell, run wsl -u root (or wsl -d <DistroName> -u root for a distribution that is not the default). At the root prompt, run passwd <username> with your Linux username, set a new password, then type exit.
Do I have to turn on Hyper-V?
No. Microsoft’s install steps do not ask you to turn on Hyper-V: wsl --install enables what it needs, including the Virtual Machine Platform component. You only need to enable Hyper-V in Windows 11 if you want to build full virtual machines with Hyper-V Manager.
Is WSL the right choice, or do I need a full Linux desktop?
WSL suits command-line work, programming and the occasional Linux app. If you need a complete Linux desktop, special hardware access or a separate OS, compare the options to install Linux on Windows 11 with WSL, a VM or dual boot.
Is Python in Ubuntu the same as Python on Windows?
No. Python you install inside Ubuntu belongs to that Linux distribution, and Python for Windows is a separate install with its own packages. Use the Linux one for Linux tutorials, and install Python on Windows 11 separately if you also want it in PowerShell or Windows editors.
With Ubuntu running, your next step is the tool your course asked for: the Linux shell is ready now, so see how to get Bash on Windows 11 working the way you like, or install GCC on Windows 11 to start compiling.

Matt Jacobs writes and maintains the guides on Support Your Tech, which he started in 2017. He spent most of his career keeping small-business PCs running and still takes the occasional consulting job, so the steps here come from fixing the same problems on other people’s computers. Every guide is checked on his own Windows 11, Windows 10, Mac, iPhone and iPad before it goes up.