Frequently Asked Questions
What is WSL?
WSL stands for Windows Subsystem for Linux. It is a compatibility layer for Microsoft Windows that allows you to run a Linux distribution alongside your Windows installation.
You can read more about WSL on microsoft.com
What are the different WSL versions?
There are two major versions of WSL:
- WSL 1: This version uses a translation layer to convert Linux system calls into Windows NT kernel calls. While it allows you to run Linux utilities and some applications, it may not provide full compatibility with all Linux software due to the translation overhead.
- WSL 2: This is an updated version that provides a more complete Linux kernel environment running in a lightweight virtual machine (VM) on Windows. WSL 2 offers improved performance and better compatibility with a wider range of Linux software. It also allows for running Docker containers with Linux as the base OS.
What version of WSL am I running?
You can find your current version of WSL by running the following command: wsl --version
.wslconfig generator
Use the .wslconfig generator to generate a .wslconfig file. This is used to provide tweaks and assign limits to WSL2 environments.