WSL Commands Cheat Sheet
Command Description
wsl --list --online List available Linux distributions
wsl --install Install Ubuntu, the default distribution
wsl --install --distribution <dist_name> Install other available Linux distributions
wsl --list --verbose List installed Linux distributions
wsl -d <dist_name> Run a distribution from terminal
wsl -d <dist_name> --user <username> Run a distribution as a specific user
wsl ~ -d <dist_name> Open the distribution at the home of default user
wsl --set-default <dist_name> Set specified distribution as default distribution
wsl --terminate <dist_name> Terminate a running distribution
wsl --shutdown Shutdown WSL and related systems
wsl --version Get the version of WSL on your system
wsl --status Check the status of WSL, its configuration, etc
wsl --set-version <dist_name> <ver> Change the WSL version of a distribution
wsl --export <dist_name> <file.tar> Export a distribution to a tar file with given name
wsl --import <dist_name>
Import a distribution from a tar file
<import location> <exported file>
wsl --unregister <DistributionName> Unregister a distribution
wsl --mount <diskpath> Mount a disk
wsl --update Update WSL version
wsl --help Get help for WSL command and options