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