Cheat Sheets

Windows Subsystem Linux (WSL)

Created: 2017 October 11th

Updated: 2020 December 13th

Edit this page on GitHub

Shutdown WSL

Localhost not working?

GNU Bash icon
wsl --shutdown

Change WSL Version

Change between WSL versions

GNU Bash icon
# 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:

GNU Bash icon
wsl --set-default-version 2

List installed WSL Distros

GNU Bash icon
# wsl --list --verbose
wsl -l -v