WSL2 @ host#
The following commands needs to be executetd in PowerShell at WSL2 host
Installation#
Command |
Description |
|---|---|
|
List available Linux distributions for WSL |
|
Install a specific Linux distribution (replace NAME with the distribution name, e.g., ‘Ubuntu-22.04’) |
During the installation process, you might be prompted to set a new
user nameandpasswordfor the Linux distribution. After setup, you may also need torebootyour system to complete the installation.
Maintenance and Verification#
Command |
Description |
|---|---|
|
List all running WSL virtual machines |
Uninstallation#
Use the name of the distribution (NAME) similar to installation.
Command |
Description |
|---|---|
|
Uninstall a specific Linux distribution (replace NAME with the distribution name, e.g., ‘Ubuntu-22.04’) |