A Windows feature that runs a Linux environment directly on a Windows PC without a separate traditional virtual machine or dual-boot setup; WSL 2 uses a real Linux kernel in a lightweight virtual machine.
Title graphic: Windows Subsystem for Linux (WSL) (Product)
Windows Subsystem for Linux (WSL) is a Windows feature that lets developers run a GNU/Linux environment, including most command-line tools, utilities and applications, directly on Windows. According to Microsoft's documentation, Linux runs unmodified and without the overhead of a traditional virtual machine or a dual-boot setup. WSL is available on Windows 10 and Windows 11, and installation guides exist for Windows, for Windows Server and for manual setups.
The main reason people look at WSL is that a large share of development tutorials, scripts and tools assume a Linux shell. The M365.FM episode "Windows Subsystem for Linux (WSL) - Simply Explained" opens with exactly this point: half the tutorials online assume the reader is not on Windows, which used to suggest having the wrong machine. The episode describes WSL as a free feature that runs real Linux right beside Windows. The Microsoft documentation names typical uses such as Node.js and web development, scripting, and remote development with Visual Studio Code. Its linked videos also cover GPU-accelerated machine learning with WSL 2 and running Linux GUI apps.
Two versions exist, WSL 1 and WSL 2, and Microsoft maintains a dedicated page that compares them. The short description of the product states that WSL 2 uses a real Linux kernel in a lightweight virtual machine. The episode lists the real difference between WSL 1 and WSL 2 as one of its topics, which makes the version choice one of the first decisions when setting up WSL. The documentation itself does not state system requirements, licensing terms or concrete limitations on its landing page and refers readers to the install, comparison and FAQ pages for those details.
Linux distributions are obtained from the Microsoft Store, and the documentation notes that other distributions can be used as well. Once a distribution is installed, the documentation covers how files are shared in both directions: accessing Linux files from Windows and Windows files from within WSL. Further documented topics include connecting USB devices to WSL 2 and a memory reclaim feature. These pieces describe the practical day-to-day side of working in a Linux environment while staying on a Windows machine.
WSL is also developed in the open. A Microsoft blog post announces that WSL is open source, and issues are tracked on GitHub. For people who want early access to new builds, preview versions are available through the Windows Insiders channels Dev, Beta and Release Preview, which differ in stability. Choosing a channel is therefore a trade-off between access to newer builds and the expected stability of the build.
In practice, the decisions around WSL tend to follow a simple order: confirm that the Windows edition in use is covered by the relevant installation guide, decide between WSL 1 and WSL 2 using the comparison page, pick a distribution from the Microsoft Store or another source, and then decide how Windows and Linux files and tools should work together. For readers who want a plain-language introduction before reading the technical documentation, the M365.FM episode "Windows Subsystem for Linux (WSL) - Simply Explained" is aimed at explaining why Linux tools keep appearing in Windows tutorials, what WSL actually is, and how the two WSL versions differ.
Overview compiled with AI from M365.FM episodes and the facts on this page. You can improve it with the edit button below.
Many tutorials assume you are not on Windows, and that leaves beginners stuck at the first bash command. This episode explains Windows Subsystem for Linux for IT pros and learners in the Microsoft world: what it is, how WSL 1 and WSL 2 differ, how to install…
Articles about Windows Subsystem for Linux (WSL) (1)
Articles in which Windows Subsystem for Linux (WSL) is a topic:
Questions marked with AI were written with AI from the facts on this page.
What is Windows Subsystem for Linux (WSL)? (AI)
WSL is a Windows feature that runs a GNU/Linux environment, including most command-line tools and applications, directly on Windows. Microsoft states that Linux runs unmodified and without the overhead of a traditional virtual machine or a dual-boot setup.
What is the difference between WSL 1 and WSL 2? (AI)
Both versions exist and Microsoft provides a dedicated comparison page. WSL 2 uses a real Linux kernel in a lightweight virtual machine, and the M365.FM episode "Windows Subsystem for Linux (WSL) - Simply Explained" covers the difference between the two.
How are Linux distributions installed for WSL? (AI)
Distributions can be obtained from the Microsoft Store, and the documentation notes that other distributions can be used as well. Installation guides exist for Windows, Windows Server and manual setups.
How do I install WSL?
WSL installs with a single command on Windows 10 and 11, since it is a free feature built into the system. Once installed, it starts in under a second and runs real Linux right beside Windows. · From the episode: Windows Subsystem for Linux (WSL) - Simply Explained
Is WSL a virtual machine I have to manage?
Not in practice. WSL starts in under a second, so you do not have to babysit it the way you would a classic virtual machine. The episode also covers the difference between WSL 1 and WSL 2 and how Linux and Windows share files. · From the episode: Windows Subsystem for Linux (WSL) - Simply Explained
What is the main drawback of WSL?
Its main quirk is that files crossing between Linux and Windows move slowly, so moving data across that boundary can slow you down. Otherwise it starts in under a second and installs with one command. · From the episode: Windows Subsystem for Linux (WSL) - Simply Explained
Short info above, community knowledge below: add practical tips, examples or corrections. New contributions are reviewed first; trusted members publish directly.
Experts and companies for this topic
Nobody has listed this topic yet. Add it to your profile.