ArticleslgStudy

computer science

Windows Subsystem for Linux

Windows Subsystem for Linux is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Windows Subsystem for Linux rather than just read about it. In short: Windows Subsystem for Linux (WSL) is a component of Microsoft Windows that allows the use of a Linux environment from within Windows, using a hidden virtual machine as an alternative to dual booting. The WSL command-line interface tool is installed by default in Windows 11, but a distribution must be downloaded and installed through it before use.

Windows Subsystem for Linux — main illustration
Windows Subsystem for Linux — illustration

Key takeaways

  • Windows Subsystem for Linux belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Windows Subsystem for Linux to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Windows Subsystem for Linux from memory before moving on to harder problems.

Reference excerpt

Windows Subsystem for Linux (WSL) is a component of Microsoft Windows that allows the use of a Linux environment from within Windows, using a hidden virtual machine as an alternative to dual booting. The WSL command-line interface tool is installed by default in Windows 11, but a distribution must be downloaded and installed through it before use. In Windows 10, WSL can be installed either by joining the Windows Insider program or manually via Microsoft Store or Winget. The original version, WSL 1, differs significantly from the second major version, WSL 2. WSL 1 (released August 2, 2016), acted as a compatibility layer for running Linux binary executables (in ELF format) by implementing Linux system calls in the Windows kernel. WSL 2 (announced May 2019), introduced a real Linux kernel – a managed virtual machine (via Hyper-V) that implements the full Linux kernel. As a result, WSL 2 is compatible with more Linux binaries as not all system calls were implemented in WSL 1. As of June 2026, WSL 1 is still maintained and supported. Microsoft offers WSL for a variety of reasons. Microsoft envisions WSL as "a tool for developers – especially web developers and those who work on or with open source projects". Microsoft also claims that "WSL requires fewer resources (CPU, memory, and storage) than a full virtual machine" (a common alternative for using Linux in Windows), while also allowing the use of both Windows and Linux tools on the same set of files. The majority of WSL was released as open source software on May 19, 2025, although certain filesystem functions still rely on a closed-source proprietary library as of September 2025.

History

Microsoft's first foray into achieving Unix-like compatibility on Windows was the Microsoft POSIX subsystem, superseded by Windows Services for UNIX via MKS/Interix, which was eventually deprecated with the release of Windows 8.1. The technology behind Windows Subsystem for Linux originated in the unreleased Project Astoria, which enabled some Android applications to run on Windows 10 Mobile. It was first made available in Windows 10 Insider Preview build 14316. Whereas Microsoft's prior projects and the third-party Cygwin had focused on creating their own unique Unix-like environments based on the POSIX standard, WSL aimed for native Linux compatibility. Instead of wrapping non-native functionality into Win32 system calls as Cygwin did, WSL's initial design (WSL 1) leveraged the NT kernel executive to serve Linux programs as special, isolated minimal processes (known as "pico processes") attached to kernel mode "pico providers" as dedicated system call and exception handlers distinct from that of a vanilla NT process, opting to reutilize existing NT implementations wherever possible. WSL beta was introduced in Windows 10 version 1607 (Anniversary Update) on August 2, 2016. WSL beta was also called "Bash on Ubuntu on Windows" or "Bash on Windows", and only Ubuntu (with Bash as the default shell) was supported. WSL was no longer beta in Windows 10 version 1709 (Fall Creators Update), released on October 17, 2017. Multiple Linux distributions could be installed and were available for install in the Windows Store. At a Microsoft Ignite conference in 2018, Microsoft engineers gave a high-level overview of a new "lightweight" Hyper-V VM technology for containerization where a virtualized kernel could make direct use of NT primitives on the host. In 2019, Microsoft announced a completely redesigned WSL architecture (WSL 2) using this lightweight VM technology hosting actual (customized) Linux kernel images, claiming to provide full syscall compatibility. Microsoft announced WSL 2 on May 6, 2019, and it was shipped with Windows 10 version 2004. It was also backported to Windows 10 version 1903 and 1909. GPU support for WSL 2 to run GPU-accelerated machine learning was introduced in Windows build 20150. GUI support for WSL 2 to run Linux applications with graphical user interfaces (GUIs) was introduced in Windows build 21364. Both are shipped in Windows 11. In April 2021, Microsoft released a Windows 10 test build that also includes the ability to run Linux graphical user interface (GUI) apps using WSL 2 and CBL-Mariner. The Windows Subsystem for Linux GUI (WSLg) was officially released at the Microsoft Build 2021 conference. It is included in Windows 10 Insider build 21364 or later. On October 11, 2021, Microsoft introduced a version of WSL in the Microsoft Store for Windows 11. It reached version 1.0.0 in November 2022 with added support for Windows 10. In November 2024, Microsoft announced new features coming to WSL intended to improve the experience for new users, including a window with new "getting started" navigation tips and explanations. On May 19, 2025, during Build, Microsoft announced that the majority of WSL had been released as open source software, aside from a driver used by WSL 1, and the IFS network redirector drivers on WSL 2.

Notable releases

Features

The first release of WSL provides a Linux-compatible kernel interface developed by Microsoft, containing no Linux kernel code, which can then run the user space of a Linux distribution on it, such as Ubuntu, openSUSE, SUSE Linux Enterprise Server, Fedora, CentOS, AlmaLinux, Debian, and Kali Linux. Such a user space might contain a GNU Bash shell and command language, with native GNU command-line tools (sed, awk, etc.), programming-language interpreters (Ruby, Python, etc.), and even graphical applications (using an X11 server at the host side). The architecture was redesigned in WSL 2, with a Linux kernel running in a lightweight virtual machine environment.

wsl.exe The wsl.exe command accesses and manages Linux distributions in WSL via command-line interface (CLI) – for example via Command Prompt or PowerShell. With no arguments it enters the default distribution shell. It can list available distributions, set a default distribution, and uninstall distributions. It can also run a Linux command – replacing lxrun.exe which is deprecated as of Windows 10 1803 and later.

… excerpt ends here. Continue reading the full article.

Illustrations

Windows Subsystem for Linux illustration
Windows Subsystem for Linux illustration
Windows Subsystem for Linux: Bash running on Windows 10
Bash running on Windows 10
Windows Subsystem for Linux: Firefox for Linux running on WSL
Firefox for Linux running on WSL
Windows Subsystem for Linux: Synaptic package manager running on WSL
Synaptic package manager running on WSL

Worked examples

Example 1 — a first encounter with Windows Subsystem for Linux

Start with the simplest possible case. Write down what Windows Subsystem for Linux claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Windows Subsystem for Linux before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Windows Subsystem for Linux ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Windows Subsystem for Linux

In research
Windows Subsystem for Linux appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Windows Subsystem for Linux in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Windows Subsystem for Linux is common in secondary-school and first-year university syllabi. It links to neighbouring topics 2016 software, Compatibility layers, Microsoft free software, so understanding it makes those chapters shorter.
In everyday life
Look for Windows Subsystem for Linux outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Windows Subsystem for Linux” →

How to study Windows Subsystem for Linux in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Windows Subsystem for Linux means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Windows Subsystem for Linux out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Windows Subsystem for Linux in simple terms?

Windows Subsystem for Linux (WSL) is a component of Microsoft Windows that allows the use of a Linux environment from within Windows, using a hidden virtual machine as an alternative to dual booting. The WSL command-line interface tool is installed by default in Windows 11, but a distribution must…

Why does Windows Subsystem for Linux matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Windows Subsystem for Linux?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Windows Subsystem for Linux.

Tags

  • 2016 software
  • Compatibility layers
  • Microsoft free software
  • Software using the MIT license
  • Virtualization software
  • Windows 10
  • Windows 11
  • Windows commands
  • Windows components

Keep exploring