How do you set your distro as default so that you can access it after executing wsl command?
Experience Level: Junior
Tags: WSL
Answer
From command-line,
run wsl --list
Then run
wsl --set-default YourDistroName
(You will find YourDistroName in the output of the wsl --list)
Related WSL job interview questions
How do you re-run WSL that you stopped before?
WSL JuniorHow do you shutdown WSL?
WSL JuniorHow do you remove a distro from WSL?
WSL JuniorHow do you convert your WSL distro to WSL2?
WSL JuniorHow do you check what WSL version your distro has?
WSL Junior