This blog post will show you how to check which version of Windows Subsystem for Linux is set on your Linux distribution.
WSL Version 2
WSL version 2 is the most advanced version of WSL and offer a better underlining architecture that delivers better performance across speed and I/O.
To check which version your WSL Linux distribution or distributions are running, open a PowerShell terminal session and run the following command.
wsl --list --verbose
The output is shown below, and as you can see, it lists the name of the distribution, state and WSL version. In my case, it is version 2.
NAME STATE VERSION Ubuntu Running 2