When every major update, a new version number is added to the platform. Back in 2017, Microsoft released the original WSL version 1 with Windows 10, and later WSL2 (version 2) which lets developers run a GNU/Linux environment, including most command-line tools, utilities, and applications directly in Windows without setting up a virtual machine or dual-boot. WSL2 is the new and improved version that comes with a performance boost, and full system call compatibility, and is built with a new architecture that delivers features that make WSL an amazing way to run a Linux environment in Windows. If you want to find out which versions of WSL are running on your system, the commands below will show you how.
How to check the WSL version in Windows 11
As mentioned above, there are two major versions of WSL that one can install and run today. If your system is older and not compatible with WSL version 2, you’ll have to install version 1. If you do not know which version you’re running, use the steps below to find out. Click on the Start menu button, then search for Command Prompt, right-click the top result, and select Run as administrator as shown below. Once the command prompt opens, type the commands below and press ENTER. The short version of the commands above can be written as: When you run the commands above, it will show the version of WSL you’re running on your system. If the command returns 2, then WSL2 is installed. If you’re running WSL version 1 or WSL1, the command will return an error or won’t return any value. This is because the commands above were introduced in WSL2, and are not available in version 1. That should do it! Conclusion: This post showed you how to check which versions of WSL are running on your system. If you find any error above or have something to add, please use the comment form below.