How to Check the Windows Subsystem for Linux (WSL) Version in Windows
Plus we’ll show you a few other tricks
You’ve got the Windows Subsystem for Linux (WSL) running on your Windows 11 or Windows 10 for trying some bash commands, and maybe running some of thebest Linux apps. It’s much easier than using a dual boot to have both operating systems.
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 outwhat version of Windowsyou 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 thewsl.exe –installcommand, you have the default version of WSL. That means you have theUbuntu 20.04 LTSLinux 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 messageConversion 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 runWSLfrom theStartmenu, it opensKali Linux.
Learn More About the WSL Commands
To see the built-in help docs for WSL, use the commandwsl –help.
Also, check out our articles on installing WSL andusing bash on Windows 11. Come back again and we’ll surely have more WSL-related articles for you.
Guy has been published online and in print newspapers, nominated for writing awards, and cited in scholarly papers due to his ability to speak tech to anyone, but still prefers analog watches.Read Guy’s Full Bio
Leave a Reply
Your email address will not be published.Required fields are marked*
Comment*
Name*
Email*
Website
Welcome to Help Desk Geek- a blog full of tech tips from trusted tech experts. We have thousands of articles and guides to help you troubleshoot any issue. Our articles have been read over 150 million times since we launched in 2008.
HomeAbout UsEditorial StandardsContact UsTerms of Use
Copyright © 2008-2024 Help Desk Geek.com, LLC All Rights Reserved