The fastest way to check your WSL version
Open PowerShell or Command Prompt on Windows and type wsl --version, then press Enter. This command shows your WSL version number, your Linux kernel version, and the WSLg version (the graphical component). If the command does not work, you are running WSL 1, which does not support the --version flag.
If you need to know which WSL version you are running — version 1 or version 2 — use wsl --list --verbose instead. This shows every Linux distribution you have installed, which version of WSL each one uses, and whether it is currently running or stopped.
You can also check your WSL version from inside a Linux terminal. Open your WSL distribution and type wsl.exe --version (with the .exe extension), or type uname -r to see the kernel version alone. The kernel version tells you which WSL version is running: version 1 shows a generic kernel number, while version 2 shows a number containing "microsoft".
Key Takeaways
- Run wsl --version in PowerShell or Command Prompt to see your WSL version number and kernel version in one command.
- Use wsl --list --verbose to see which WSL version each of your installed Linux distributions is using.
- WSL 1 does not support the --version flag, so if the command fails, you are running version 1.
- You can check your version from inside a Linux terminal by typing uname -r and looking for "microsoft" in the kernel number.
Understanding WSL 1 versus WSL 2
WSL 1 and WSL 2 are two different implementations of Windows Subsystem for Linux. WSL 1 translates Linux system calls to Windows system calls in real time, which makes it lighter on system resources but slower for file-heavy operations. WSL 2 runs a real Linux kernel inside a lightweight virtual machine, which makes it faster for most tasks but uses more memory.
Most new installations default to WSL 2, but if you upgraded from an older Windows installation, you might still be running WSL 1. Knowing which version you have matters because some tools and workflows perform much better on WSL 2, and some older hardware or Windows versions cannot run WSL 2 at all.
How to update WSL to the latest version
If you are running WSL 2, open PowerShell as Administrator and type wsl --update. This downloads and installs the latest Linux kernel for WSL 2. The update usually takes a few minutes and does not require a restart, though you may need to close and reopen any open WSL terminals.
If you are running WSL 1 and want to upgrade to WSL 2, the process is more involved. You need Windows 10 version 2004 or later (or any recent version of Windows 11). Open PowerShell as Administrator and type wsl --set-version <distribution-name> 2, replacing <distribution-name> with the actual name of your Linux distribution — for example, wsl --set-version Ubuntu 2. This conversion can take several minutes depending on how much data is in your distribution.
To see the exact name of your distribution, run wsl --list first. The names are case-sensitive in the conversion command, so copy the name exactly as it appears in the list.
Checking version from the Windows Settings app
You can also view your WSL status through the Windows Settings app, though this method shows less detail than the command line. Open Settings, go to System, then About, and scroll down to find "Windows Subsystem for Linux". This section shows whether WSL is installed but does not display the specific version number.
For a more complete view, the command line methods described above are faster and more informative. The Settings app is useful mainly to confirm that WSL is installed at all.
What to do if WSL is not installed
If wsl --version returns a "command not found" or "not recognized" error, WSL is not installed on your system. To install it, open PowerShell as Administrator and type wsl --install. This command downloads and installs WSL 2 along with a default Linux distribution (usually Ubuntu). The installation requires a restart.
If you want to install a specific Linux distribution instead of the default, you can list available distributions with wsl --list --online, then install one by name — for example, wsl --install -d Debian. After installation completes and you restart, you can check your version with the commands described at the top of this article.
Troubleshooting version check commands
If wsl --version does not work, make sure you are running PowerShell or Command Prompt as Administrator. Right-click the application icon and select "Run as administrator" before typing the command. Some older versions of Windows do not support the --version flag even if WSL is installed; in that case, use wsl --list --verbose instead.
If you see an error about virtualization not being enabled, WSL 2 may not be able to run on your system. Check your BIOS settings to ensure that virtualization (sometimes called VT-x or AMD-V) is turned on. If virtualization cannot be enabled, you can still use WSL 1, which has no virtualization requirement.
Frequently Asked Questions
What does the kernel version number tell me?
The kernel version shows which Linux kernel WSL is running. WSL 2 kernels include "microsoft" in the version string, while WSL 1 shows a generic kernel number. A higher kernel version number means you have a more recent update, but both are usually stable for everyday use.
Can I run both WSL 1 and WSL 2 at the same time?
Yes. You can have some Linux distributions running on WSL 1 and others on WSL 2 on the same Windows machine. Use wsl --list --verbose to see which version each distribution is using, and wsl --set-version <name> 1 or 2 to switch a distribution between versions.
Do I need to update WSL manually, or does it update automatically?
WSL 2 updates automatically through Windows Update on most systems, but you can also update manually with wsl --update. WSL 1 does not receive kernel updates the same way, so upgrading to WSL 2 is the main way to get the latest Linux kernel features.
What if my version check command shows an old kernel version?
Run wsl --update to download the latest kernel. If the update does not work, restart your computer and try again. If the version still does not change after a restart, check that you have enough disk space and that Windows Update is not blocked by your system administrator.