find wsl version on windows 10 · The Chat Archivefind wsl version on windows 10
Download ▾
find wsl version on windows 10
Assistant
To find the WSL (Windows Subsystem for Linux) version installed on your Windows 10 system, you can follow these steps:
Method 1: Using Command Prompt or PowerShell
- Open Command Prompt or PowerShell.
- Run the following command to list installed WSL versions for each Linux distribution:
bash
wsl --list --verbose
or its shorthand:
This command outputs a table showing all installed WSL distributions along with their versions (WSL 1 or WSL 2). Example output:
code
NAME STATE VERSION
* Ubuntu-20.04 Running 2
Debian Stopped 1
Method 2: Check WSL default version
To check the default version for new Linux installations:
bash
wsl --set-default-version
Running without an argument just prints usage help, but if you want to see what version is default, you can check with:
bash
wsl --list --verbose
Your default version can also be found by:
bash
wsl --status
Method 3: Check your WSL installation version (WSL 1 vs WSL 2 kernel)
To find out if WSL 2 is installed (which uses a lightweight VM), check the version by trying:
bash
wsl --status
This will show information such as kernel version, WSL version, and other settings.
- WSL 2 is only officially supported on Windows 10 version 1903 and higher (with Build 18362 or higher).
- If
wsl --list --verbose is not recognized, you might need to update your WSL installation or Windows 10 version.
If you want to upgrade a Distro from WSL 1 to WSL 2, you can run:
bash
wsl --set-version <distro name> 2
Replace <distro name> with your distribution name, e.g., Ubuntu-20.04.
Let me know if you want me to guide you through upgrading or installing WSL 2!
Not yet included in a published release.