wsl --shutdown
wsl
# close all apps accessing linux files (e.g. vscode)
# shutdown WSL distribution
$ wsl --shutdown Ubuntu
# confirm WSL distribution has shut down
$ wsl -l -v
# start the WSL distributuion again
$ wsl -d Ubuntu
# in powershell as administrator:
Restart-Service LxssManager
wsl.exe --shutdown
wsl