WSL

Open Terminal.

wsl --install
  1. Wait, after install, reboot PC

  2. Finally, Open Ubuntu terminal and setup username and password (don't leave it empty)

You can uninstall snap if you dont use it (run inside wsl ubuntu):

bash <(curl -fsSL https://gitlab.com/scripts94/kubuntu-get-rid-of-snap/-/raw/main/Kubuntu_get_rid_of_Snap.sh)

Useful commands/tools

WSL Distro Manager

https://github.com/bostrot/wsl2-distro-managerarrow-up-right

List installed distros

wsl -l -v

Reinstall distro

wsl --unregister <distro-name>
wsl --install -d <distro-name>

WSL takes too much space ?

circle-info

If you notice your WSL2 is taking too much space even after some clean, here's how you can compact your WSL2 virtual disk on windows (If you're having trouble with automatic, just doit manually)

When this issuearrow-up-right will be fixed this part will be useless.

Use wslcompactarrow-up-right. If wslcompact did nothing, you can try the following script to compact vdisk:

Last updated