Run the following command:
- wsl -l -v.
- You should see a report such as this, which should confirm your WSL Version. PS C:\Users\yourname> wsl -l -v NAME STATE VERSION Ubuntu-20.04 Running 2.
- How do I know if WSL 2 is enabled?
- How do I change WSL to version 2?
- How do I change my WSL version?
- How do I know if WSL2 is installed?
How do I know if WSL 2 is enabled?
Confirm distro platform
- Open Start.
- Search for PowerShell, right-click the top result, and select the Run as administrator option.
- Type the following command to verify the version of the distro and press Enter: wsl --list --verbose.
- Confirm the version of the distro version is set to 2.
How do I change WSL to version 2?
- Enable WSL. Regardless of which version of WSL you want to use you first need to enable it. ...
- Enable 'Virtual Machine Platform' WSL 2 requires Windows 10's “Virtual Machine Platform” feature to be enabled. ...
- Set WSL 2 as default. ...
- Install a distro. ...
- Use WSL 2.
How do I change my WSL version?
Set Linux Distro Version to WSL 1 or WSL 2 for new instances
- Open PowerShell as Administrator.
- To set WSL 2 as your default version for new instances, type and run: wsl --set-default-version 2 .
- To set WSL 1 as your default version for new instances, type and run: wsl --set-default-version 1 .
- You are done.
How do I know if WSL2 is installed?
Checking if the Install Worked
The following command will show us what distros we have installed and what version they are on: wsl --list --verbose. # or shorthand. wsl -l -v.