WSL

From Han Wiki
Revision as of 16:19, 6 March 2023 by Mhan (talk | contribs) (iwu)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Jump to navigation Jump to search

Install WSL

PS C:\Users\micha> wsl --install
Installing: Windows Subsystem for Linux
Windows Subsystem for Linux has been installed.
Installing: Ubuntu
Ubuntu has been installed.
The requested operation is successful. Changes will not be effective until the system is rebooted.

List available Linux distributions

PS C:\Users\micha> wsl --list --online
PS C:\Users\micha> wsl -l -o

Install additional Linux distributions after the initial install

wsl --install -d <Distribution Name>

Check the installed version of WSL

wsl -l -v

Change the default Linux distribution used with wsl

wsl -s <Distribution Name>

Run a specific distribution (when there are multiple ones)

wsl -d <Distribution Name>