How to launch a specific WSL distro when you have multiple installed
If you have only one Linux distribution installed, you can simply type:
wsl
and WSL will automatically launch that single distro.
But when you have multiple distros installed, WSL needs to know which one you want to open. First, list all running distros:
wsl --list --running -v
This shows something like:
Use:
wsl -d <Distro-Name>
Examples:
wsl -d Ubuntu-26.04
This launches that exact environment, even if others are running.
To set a default distro (optional)
If you want one distro to open automatically when you type
wsl:wsl --set-default <Distro-Name>
Example:
wsl --set-default Ubuntu-26.04
Now typing
wsl will always enter Ubuntu‑26.04 unless you explicitly choose another with -d.wsl -d Ubuntu-26.04
wsl -d <Distro-Name>
wsl -d <Distro-Name>
wsl --list --running -v
wsl --list --running -v

Comments
Post a Comment