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.





