Windows Subsystem Linux (WSL)

Created
2017 Oct 11th
Updated
2020 Dec 13th

Shutdown one WSL instance

wsl --terminate Ubuntu # or whatever the distro is called

Shutdown WSL

Localhost not working?

wsl --shutdown

Change WSL Version

Change between WSL versions

# wsl --set-version <distro> 2
# example
wsl --set-version Debian 2

Set the default version of WSL

When installing new Linux distros you can default them all to be WSL2 or or one:

wsl --set-default-version 2

List installed WSL Distros

# wsl --list --verbose
wsl -l -v