WSL for Mere Mortals
A real Linux, living inside Windows — installed with one command, sharing files and programs with the Windows side, and gone without a trace when you delete it. This guide explains how the Windows Subsystem for Linux actually works, how to run it well, and where it honestly stops.
WSL suits anyone whose day straddles both systems: developers who build on Windows and deploy to Linux, sysadmins who need real Linux tools beside their Windows ones, and the simply curious who want a Linux they cannot break their computer with.
An honest note before we start: WSL is a Windows feature, and this guide's lab has no Windows machine in it. The guide was written from Microsoft's own documentation — every command, key and error code checked against Microsoft Learn, and every Linux-side claim cross-checked from ordinary Linux knowledge — rather than from hands-on runs. The Writing Criteria chapter carries the full verification ledger. Nothing here pretends otherwise.
What this guide covers
- What WSL Is — the idea, and the one thing to keep in mind: it is not a sandbox.
- The Moving Parts — the
wsl.exetool, the distro disk file, the file bridge both ways, and the two config files. - WSL 1 vs WSL 2 — translation vs a real kernel, and the one job the older one still wins.
- Installing WSL — the one command, the first-launch questions, the Store vs inbox builds, and older Windows.
- Choosing and Managing Distributions — adding, defaulting, converting, updating, removing — and the warning unregistering earns.
- Files Both Ways —
\\wsl$and/mnt/c, the golden rule, and the truth about cross-boundary speed. - Configuring WSL —
wsl.confand.wslconfigkey by key, and the eight-second rule. - systemd and Services — switching on the real service manager, and what it does and doesn't change.
- Networking — the default NAT, the localhost trick, and mirrored mode.
- GUI Apps with WSLg — Linux windows on the Windows desktop, and what isn't supported.
- Hardware: GPU and USB — GPU compute with one golden rule, and usbipd for real devices.
- Backup, Moving, and Cloning — export and import: the whole life-cycle in two commands.
- Recipes — the everyday jobs, combined.
- The Neighbours — full VMs, dual boot, Docker Desktop, a second machine: when each beats WSL.
- Limits — not a server, not a desktop, disks that only grow, and the rest.
- Troubleshooting — the classic error codes, translated.
- Glossary — every term, defined plainly.
What it doesn't cover
Driving a full Linux desktop (a virtual machine's job); publishing services to the internet from WSL (a real server's job); building a custom WSL kernel beyond pointing at the setting; and any distribution's own internals in depth — your distro is a standard Linux, and its own documentation takes over where this guide stops.
This guide is part of the For Mere Mortals series — plain-language, honestly-verified guides to tools that matter. Start at the series index.
Related guides:
- Linux for Mere Mortals — the operating system itself, for when the distro stops being a guest and becomes the machine.
- Bash for Mere Mortals — the shell you land in when WSL opens, and how to make it yours.
- PowerShell for Mere Mortals — the Windows side of the terminal, where
wsl.exeis driven from. - systemd for Mere Mortals — the service manager chapter 8 switches on, in full depth.
- Docker for Mere Mortals — containers, which on Windows ride on WSL 2 themselves.
- Virtual Machines for Mere Mortals — the heavier neighbour, for when WSL's limits are the ones you hit.