[ About | Licence | Contacts ]
Written by Oleksandr Gavenko (AKA gavenkoa), compiled on 2020-02-13 from rev d88d5d1a8cd9+.

WSL, Windows subsystem for Linux

wsl utility

Run Linux command from default distro:

wsl ls
wsl -e /bin/ls
wsl --exec /bin/bash

Run Linux command from specific distro:

wsl -d ubuntu ls
wsl -d debian -e /bin/ls
wsl -d debian --exec /bin/bash
wsl -distribution debian --exec /bin/bash

Run Linux command from specific user:

wsl -u user ls
wsl --user root ls

wslconfig utility

List distros:

wslconfig /l
wslconfig /list

Set default distro:

wslconfig /s debian
wslconfig /setdefault debian

Terminate any running parts of distro:

wslconfig /s debian
wslconfig /terminate debian