Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

wsl restart

# 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
Source by superuser.com #
 
PREVIOUS NEXT
Tagged: #wsl #restart
ADD COMMENT
Topic
Name
6+8 =