To install WSL on Windows 10, right-click Start, select Windows PowerShell (Admin), type wsl --install, and press Enter. Restart your PC when it’s done. After the restart, Ubuntu opens and asks you to create a Linux username and password.
Applies to: Windows 10 version 2004 (build 19041) and later. Microsoft ended Windows 10 support on October 14, 2025, so a PC without Extended Security Updates no longer receives security fixes; that program runs until October 12, 2027.
WSL (Windows Subsystem for Linux) lets you run a Linux distribution such as Ubuntu, with its command line and tools, right on Windows. You don’t need a virtual machine or dual boot. Not sure which version you’re on? Check your Windows 10 version first.
Install WSL with one command
- Right-click Start and select Windows PowerShell (Admin). Select Yes if asked.
- Type
wsl --installand press Enter. - Wait for WSL and Ubuntu to install, then restart your PC.

This turns on the features WSL needs and installs Ubuntu, the default Linux distribution.
Set up your Linux user
- After the restart, Ubuntu opens by itself. If it doesn’t, open Ubuntu from the Start menu.
- Wait a minute while it finishes installing.
- Enter a username and password for Linux. They don’t have to match your Windows account.

You won’t see anything as you type the password. That’s normal.
Install a different Linux distribution
- To see what’s available, run
wsl --list --online. - To install one, run
wsl --install -dfollowed by its name, such aswsl --install -d Debian. - You can also get distributions from the Microsoft Store.
Useful WSL commands
wslopens your default distribution.wsl --list --verboseshows installed distributions and whether each uses WSL 1 or WSL 2.wsl --set-default-version 2makes new distributions use WSL 2.wsl --updateupdates WSL.wsl --shutdownstops all running distributions.
Keep WSL up to date
Run wsl --update in PowerShell or Command Prompt to get the latest WSL version, and wsl --version to see what you have. Update the Linux packages separately inside Ubuntu with sudo apt update && sudo apt upgrade. That same command keeps Linux tools like OpenSSL patched, which is one of the simpler ways to get OpenSSL on Windows 10.
Back up, move or remove a distribution
- Back up:
wsl --export Ubuntu D:\Backups\ubuntu.tarsaves the whole Linux system to one file. - Restore or move:
wsl --import Ubuntu2 D:\WSL\Ubuntu2 D:\Backups\ubuntu.tarbrings it back, even on another drive. - Remove:
wsl --unregister Ubuntudeletes the distribution and everything inside it, so back up first.
Limit how much memory WSL uses
WSL 2 can use a lot of RAM. To cap it, create a text file named .wslconfig in your user folder (C:\Users\YourName) containing these two lines:
[wsl2]memory=4GB
Then run wsl --shutdown and start Linux again.
Check and change the WSL version
WSL 2 runs a real Linux kernel and is faster for most tasks, so it’s the default. Older setups may still use WSL 1. To check, run wsl -l -v in PowerShell. The VERSION column shows 1 or 2 for each distribution.
- To switch a distribution to WSL 2, run wsl –set-version Ubuntu 2, using the name from the list.
Converting can take several minutes for a large distribution. WSL 2 needs virtualization turned on in your PC’s firmware settings.
Install WSL without internet access
If the PC can’t reach the Microsoft Store or download sites, Microsoft supports an offline install:
- On another PC, download the latest WSL .msi package from the WSL releases page on GitHub, plus a Linux distribution as a .wsl file, and copy both to this PC.
- Install the .msi package.
- In PowerShell as an administrator, run dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart, then restart.
- Install the distribution from the .wsl file, for example by double-clicking it.
If the install doesn’t work
- You see the WSL help text instead. WSL is already partly installed. Run
wsl --list --online, thenwsl --install -d Ubuntu. - It stops at 0.0%. Run
wsl --install --web-download -d Ubuntu. - The command isn’t recognized. Your Windows 10 is older than version 2004, so update Windows 10 first.
- An error mentions virtualization. Turn on virtualization in your PC’s BIOS or UEFI settings.
Frequently asked questions
How do I get to my Windows files from Linux?
Your Windows drives are under /mnt, so your C: drive is /mnt/c.
How do I open my Linux files in File Explorer?
In the Linux terminal, run explorer.exe . (with the period) to open the current folder.
Does WSL work on Windows 10 Home?
Yes. WSL and WSL 2 work on Home, Pro and other editions, as long as you’re on version 2004 or later.
Can I run Linux apps with a window?
Yes, on Windows 10 version 21H2 or later with an up-to-date WSL. Run wsl –update, then install a Linux app with a graphical interface and start it from the Linux terminal. It opens in its own window.
How do I uninstall WSL completely?
Unregister your distributions, then uninstall Windows Subsystem for Linux from Apps & features and turn it off in Turn Windows features on or off.
Next, you might install Docker, which can use WSL 2, or mount a Linux drive on Windows. If a tool needs a folder on the Windows PATH, open the environment variables settings. Developers can also run a database inside Ubuntu, for example by following the steps to install Redis in Windows 10.
Every install option, including the offline method, is on Install WSL.

Matt Jacobs has been working as an IT consultant for small businesses since receiving his Master’s degree in 2003. While he still does some consulting work, his primary focus now is on creating technology support content for SupportYourTech.com.
His work can be found on many websites and focuses on topics such as Microsoft Office, Apple devices, Android devices, Photoshop, and more.