WSL, the Windows Subsystem for Linux, runs a Linux distribution such as Ubuntu inside Windows. You get Bash, apt and the rest of the Linux toolchain without giving up the Windows apps you rely on, and without rebooting into another operating system.
Why developers want Linux on Windows
Much of the software developers use day to day was built for Linux first. Servers in the cloud mostly run it, so deploy scripts, Dockerfiles and CI pipelines assume a Linux shell. Many tutorials say 'open a terminal and run sudo apt install', and plenty of open-source tools ship Linux builds before anything else.
On plain Windows those instructions don't work as written. PowerShell is a capable shell, but it isn't Bash: the commands, the paths and the package manager are all different. A script written for Linux usually needs rewriting before it runs. That gap is what WSL closes.
The old ways, and what they cost
Before WSL, a Windows user who wanted Linux had three choices, and each had a catch.
- Dual-booting installs Linux beside Windows, and you pick one at start-up. You get native speed, but you have to restart to switch, and partitioning the disk and setting up the bootloader is where things go wrong. A bad step can leave a machine that won't start.
- Switching to Linux full time removes the friction for development, but some Windows-only apps, a favourite video editor for example, have no Linux version.
- A traditional virtual machine (VirtualBox, VMware) runs Linux in a window. It's safe, but you have to set it up yourself, give it a fixed share of memory and disk, and copy files in and out. It boots slowly and feels like a separate computer.
WSL keeps Windows as the main system and adds Linux on demand, with none of that setup.
How WSL works
Wondering how this was made? How we make these