List Installed Linux Distribution
$ wsl --list --verbose
List Available Linux Online
$ wsl --list --online
Install Linux Distribution
$ wsl --install Debian
Uninstall Linux Distribution
$ wsl --unregister Debian
Shutdown Linux Distribution
$ wsl --shutdown Debian
Terminate Linux Distribution
$ wsl --terminate Debian
Start Linux Distribution
$ wsl --distribution Debian
Check Status
$ wsl --status
Update WSL to Latest Version
$ wsl --update
Set WSL to Default Version
$ wsl --set-default-version 2
Set WSL to Default Linux Distribution
$ wsl --set-default Debian
Source :
https://learn.microsoft.com/en-us/windows/wsl/basic-commands
https://www.windowscentral.com/how-completely-remove-linux-distro-wsl
https://learn.microsoft.com/en-us/windows/wsl/wsl-config#wslconfig
Comments
Post a Comment