How do I check my wsl version?

13476


I have Windows Subsystem for Linux, and I'm not sure if I have WSL 2 or WSL 1. How can I check if i have WSL 2 as some of my applications are not supported in WSL 1?

1 Answer

8 months ago by

Run the below command in Powershell which displays list of distributions present in your machine along with WSL version as 2 if you have.

 wsl -l -v

Output will look like something similar to this:

  NAME                   STATE           VERSION
* Ubuntu-18.04           Running         2
8 months ago by TestUser-1