Windows Subsystem for Linux
Either a heavyweight container or a lightweight VM. Either way, it’s how I do Linux when on Windows.
CLI Usage
Launches default shell if COMMAND
is not specified and ARGUMENT
is not
provided.
--help
Show usage information
Launching shells
probably should be a sub-item of executing commands
wsl ~
Launch default distribution and start user session in distro-user’s $HOME
WSL Management commands
--install
With no additional arguments, installs WSL and Microsoft’s default preference distro (Ubuntu)
--list
Show installed WSL distributions
--list --verbose
Add WSL version and current status to WSL distribution list
--list --online
Show distributions available to install on WSL
--set-default DISTRIBUTION
Record a new preference for default Linux distribution.
--shutdown
Terminate all running distributions and the WSL manager
WARNING
Docker will complain.
--terminate DISTRIBUTION
Terminates specified distribution while leaving other distros and WSL manager alone.
Docker will complain if you terminate a distribution it has been integrated with.
--unregister DISTRIBUTION
Remove named distribution from WSL registry so it can be reinstalled or cleaned up.
Related
- https://docs.microsoft.com/en-us/windows/wsl/
- Run Linux GUI apps on the Windows Subsystem for Linux
- Diagnosing “cannot open display” type issues with WSLg
Backlinks
Added to vault 2024-01-15. Updated on 2024-01-26