Some things only work in certain versions of WSL though, and you’re not sure which one you have. So, we’ll show you how to check the WSL version on both Windows 11 and Windows 10, plus a few other tricks.
What’s the Difference Between WSL Versions?
There are only two versions of WSL; WSL 1 and WSL 2. The primary difference is that WSL 2 has the full Linux kernel whereas WSL 1 does not. Think of WSL 1 as WSL lite. If you’re a committed Linux user or serious about learning Linux, use WSL 2. It runs as a complete virtual machine with all the functionality that virtualization brings.WSL 2 will increase file system performance and supports full system call compatibility. WSL 2 is available only on Windows 11 or Windows 10, Version 1903 Build 19362 or newer. If you’re on Windows 10 and you’ve been keeping it up to date, you’re good. If you’re unsure, we’ve got an article to help you find out what version of Windows you have. Older versions of Windows 10 only have compatibility with WSL 1.
How to Check WSL Version in Windows
If you install WSL in PowerShell or the command line using the wsl.exe –install command, you have the default version of WSL. That means you have the Ubuntu 20.04 LTS Linux distro and its version WSL 2.
Suppose you’re not sure you did the default WSL install, or you’ve added several different Linux distributions and you want to know what version they are. In that case, that’s easy to check too.
That means if you run WSL without telling it which distro to use, it will run the default. Try it to see the default distro’s command line interface (CLI).
How Can I Change the WSL Version?
Let’s change openSUSE-42 from WSL 1 to WSL 2. The same method works to change any distro from WSL 2 to WSL 1. It will show the message Conversion in progress, this may take a few minutes… With a fresh install of the distro, it can take as little as 20 seconds. It’s done when you get the message, Conversion complete.
How Can I Check the WSL Defaults or Last Update?
Before looking at changing the default WSL version or default Linux distro, you should check what the current defaults are. This will also show you the last time WSL was updated. You’ll see the defaults, the last time WSL was updated, as well as the kernel version.
How Do I Update WSL?
You checked the last update time for WSL and it’s been a while. You’d like to update it to make sure you have the latest version.
How Can I Get Automatic Updates for WSL?
Did you check your WSL status and see the message that reads, “…automatic updates cannot occur due to your system settings.”? Here’s how to fix that.
How Can I Change the Default WSL Version?
Perhaps you want to only have WSL 1 for future Linux distro installs. That’s quickly changed. This can also be used to set WSL 2 as the default.
How Can I Change the Default Linux Distro?
Maybe you want to run a different Linux distro than Ubuntu when you open the Windows Start menu and select WSL. That’s ok, it’s easy to change.
Now when you run WSL from the Start menu, it opens Kali Linux.
Learn More About the WSL Commands
To see the built-in help docs for WSL, use the command wsl –help.
Also, check out our articles on installing WSL and using bash on Windows 11. Come back again and we’ll surely have more WSL-related articles for you.