How do I check my wsl version?

21058


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

3 years 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
3 years ago by Jahaan