wsl Command Examples

Manage the Windows Subsystem for Linux. More information: https://learn.microsoft.com/windows/wsl/reference.

wsl {{shell_command}}

wsl --exec {{command}} {{command_arguments}}

wsl --distribution {{distribution}} {{shell_command}}

wsl --list

wsl --export {{distribution}} {{path\to\distro_file.tar}}

wsl --import {{distribution}} {{path\to\install_location}} {{path/to/distro_file.tar}}

wsl --set-version {{distribution}} {{version}}

wsl --shutdown