# Windows Subsystem for Linux (WSL)

> A part of Windows that runs real Linux inside it. Both run at once.

**Field:** Software Development  
**Category:** Platforms & OS  
**Also known as:** WSL, WSL 2, WSL2

## Think of it like

Think of it like a room for guests built inside your house. They live their own way, under your roof.

## Definition

WSL is a part of Windows that runs a real Linux system inside it. You add a kind of Linux, like Ubuntu, and open its terminal. Linux tools then run on Windows with no second computer. You do not have to restart into the other system. WSL 2, the default, runs a real Linux kernel in a light virtual machine.

## Example

Lucy's job gives her a Windows laptop. She runs wsl --install, restarts, and gets an Ubuntu terminal.

## Example code

```console
PS> wsl --install
```

Run it in PowerShell as admin. It sets up WSL with Ubuntu as the default.

## Why it matters

Many coding tools expect Linux. WSL lets Windows users run them and stay in Windows.

## Common mistake

Keeping project files on the Windows side and working in Linux. Tools run much faster on files kept inside the Linux side.

## Three principles

- **Linux inside Windows.** Both systems run at the same time.
- **Real kernel.** WSL 2 runs an actual Linux kernel.
- **Pick a distribution.** Ubuntu by default, others on request.

## Related terms

- [Microsoft Windows](https://learn.benibix.com/term/development/windows)
- [Linux](https://learn.benibix.com/term/development/linux)
- [Ubuntu](https://learn.benibix.com/term/development/ubuntu)
- [Linux Distribution](https://learn.benibix.com/term/development/linux-distribution)
- [Terminal](https://learn.benibix.com/term/infrastructure/terminal)

## Taught in

- [Linux Distros, Ubuntu and WSL](https://learn.benibix.com/learn/development-platforms/linux-distros-ubuntu-and-wsl): OS and Files, 4/10

![On the left, a dashed box called Ubuntu, one distribution, holds three layers: desktop and apps on top, tools and a package manager in the middle, and the Linux kernel at the bottom. A note says Debian and Fedora pick other parts around the same kernel. Arrows run right to three places it can run: its own computer, a rented server, and inside Windows with WSL.](https://learn.benibix.com/diagrams/dev-linux-distro.svg)

---

Source: https://learn.benibix.com/term/development/windows-subsystem-for-linux
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
