What WSL is and why you might want it
Windows Subsystem for Linux (WSL) lets you run a Linux environment directly on Windows without a virtual machine or dual boot. You get a real Linux kernel and command line, but you stay in Windows — your files, programs, and desktop all work as normal. WSL 2, the current version, runs actual Linux inside a lightweight virtual machine that Windows manages for you.
People use WSL when they need Linux tools for work — developers often need bash, git, Python, or Docker to match what runs on their servers. System administrators use it to practice Linux commands without leaving Windows. If you've only ever used Windows and want to learn Linux, WSL is faster than setting up a separate machine.
The trade-off: WSL is not the same as running Linux natively. Some specialized software won't work, and performance on disk-heavy tasks is slower than native Linux. But for most development and learning, it's fast enough and far simpler than alternatives.
Key Takeaways
- WSL 2 requires Windows 10 version 2004 or later, or any version of Windows 11, and a processor with virtualization support (most modern CPUs have this).
- Installation happens in two steps: enable the WSL feature in Windows, then download a Linux distribution from the Microsoft Store.
- You can check your Windows version by typing winver in the search box and pressing Enter — if you see 2004 or higher, you're ready.
- After installation, you launch Linux by opening the distribution from your Start menu or typing its name in PowerShell, just like any other program.
Check your Windows version and hardware first
WSL 2 needs Windows 10 version 2004 or later, or Windows 11 (any version). To find your version, press the Windows key, type winver, and press Enter. A window will open showing your version number. If it says 2004 or higher, you can proceed. If it's older, you'll need to update Windows first — go to Settings, then Update & Security, then Windows Update, and click Check for Updates.
Your processor also needs virtualization support, which is a hardware feature that lets one CPU act like multiple ones. Nearly all processors made in the last ten years have this, but it's sometimes turned off in the BIOS (the firmware that runs before Windows starts). If installation fails later, you may need to restart your computer, enter the BIOS setup (usually by pressing Delete, F2, or F12 during startup — the exact key varies by manufacturer), and look for a setting called "Virtualization" or "VT-x" and turn it on. Your computer's manual or support website will tell you the exact steps for your model.
Enable WSL and install a Linux distribution
Open PowerShell as an administrator. Press the Windows key, type powershell, right-click "Windows PowerShell," and click "Run as administrator." Then paste this command and press Enter:
wsl --install
This single command enables WSL, installs WSL 2, and downloads Ubuntu (the most common Linux distribution) automatically. The download is several hundred megabytes, so it may take a few minutes depending on your internet speed. When it finishes, restart your computer.
After restart, Ubuntu will open automatically and finish its setup. It will ask you to create a username and password — these are for your Linux environment only, separate from your Windows login. Type a username (lowercase, no spaces), press Enter, type a password (it won't show as you type), press Enter, then type it again to confirm. You now have a working Linux command line.
Launch Linux whenever you need it
Once installed, you can open your Linux distribution the same way you open any Windows program. Press the Windows key and type the distribution name (usually "Ubuntu"), then press Enter. A terminal window opens and you're at the Linux command prompt, shown as a dollar sign ($) or hash mark (#).
You can also launch it from PowerShell by typing wsl and pressing Enter, or from Command Prompt the same way. If you install multiple Linux distributions, you can switch between them by typing wsl --list to see what you have, then wsl -d DistributionName to open a specific one.
Access your Windows files from Linux
Your Windows C: drive appears in Linux at /mnt/c. If you have files on D: or another drive, they're at /mnt/d, /mnt/e, and so on. You can navigate there and work with files just like any Linux folder. For example, typing cd /mnt/c/Users/YourUsername/Documents takes you to your Windows Documents folder.
Linux can also see your home folder in Windows. When you're in the Linux terminal, typing cd ~ takes you to your Linux home directory, which is stored inside Windows at a hidden location. Most of the time you'll work in /mnt/c so your files stay where Windows can find them easily.
Update Linux and install tools you need
When you first open Linux, it's a bare system with only basic tools. Most people immediately update it and install what they need. Type these commands one at a time, pressing Enter after each:
sudo apt updatesudo apt upgrade
The first command checks for updates, the second installs them. sudo means "run as administrator" — Linux will ask for your password. After that, you can install tools. For example, sudo apt install python3 installs Python, sudo apt install git installs Git for version control, and sudo apt install docker.io installs Docker. Type the command, press Enter, and type y when it asks to confirm.
Different distributions use different package managers. Ubuntu uses apt, Fedora uses dnf, and Arch uses pacman. If you install a different distribution later, check its documentation for the right command.
Troubleshooting common installation problems
If installation fails with an error about virtualization, restart your computer and check your BIOS settings as described above. If you see "The system cannot find the file specified," your Windows version is too old — update Windows first, then try again.
If the Linux terminal opens but immediately closes, or if you see an error about the kernel, you may need to install the WSL 2 kernel update manually. Go to microsoft.com/wsl/updates/kernel, download the installer for your processor type (x64 for most people, ARM64 if you have a Surface Pro X), run it, and restart your computer.
If you want to uninstall and start over, open PowerShell as administrator and type wsl --unregister Ubuntu (or the name of your distribution). Then reinstall by typing wsl --install again. This removes the Linux environment but leaves WSL itself in place.
Frequently Asked Questions
Can I run WSL on Windows Home edition?
Yes. WSL 2 works on Windows 10 Home, Pro, Enterprise, and Education editions, as well as all Windows 11 versions. The only requirement is that your version number is 2004 or higher on Windows 10.
Do I need to uninstall VirtualBox or VMware to use WSL?
Not usually, but they can conflict. If you have both installed and WSL won't start, try disabling Hyper-V in Windows (type "Turn Windows features on or off" in the search box, uncheck Hyper-V, and restart). This may slow down other virtual machines slightly, but it often fixes WSL conflicts.
Can I use WSL for gaming or graphics-heavy work?
WSL 2 has basic graphics support for simple GUI programs, but it's not designed for gaming or 3D graphics. It's built for command-line tools, development, and server software. If you need full Linux graphics performance, a native Linux installation or a full virtual machine is better.
What's the difference between WSL 1 and WSL 2?
WSL 1 translates Linux commands to Windows system calls, while WSL 2 runs a real Linux kernel. WSL 2 is faster, more compatible, and handles file operations better. Unless you have an old Windows 10 version that can't run WSL 2, you should use WSL 2.
Can I install multiple Linux distributions?
Yes. Open the Microsoft Store, search for "Linux," and you'll see Ubuntu, Debian, Fedora, Kali, and others. Install as many as you want — they're separate environments and don't interfere with each other. Type wsl --list to see all of them, and wsl -d DistributionName to open a specific one.