How to find out if your WSL Ubuntu is running on WSL1 oder WSL2
In order to find out if your Ubuntu or other WSL linux installation is running on WSL1 or WSL2, open a Powershell and run
example.txt
wsl --list -v
This will show you all WSL installations and the associated WSL versions:
example.txt
PS C:\WINDOWS\system32> wsl --list -v
NAME STATE VERSION
* Ubuntu Running 1
As you can see, the Ubuntu
VM is running WSL VERSION 1
.
Go to the WSL2 installation page for instructions on how to upgrade to WSL2.
Check out similar posts by category:
Windows
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow