WSL
WSL
list distribution:
1 | wsl --list |
set default distribution:
1 | wsl --set-default <name> |
list distribution that can be download with powershell(actually others can be download in microsoft store)
1 | wsl --list --online |
export virtual OS:
1 | wsl --export <distrobute name> path/to/store.tar |
import virtual OS:
1 | wsl --import <distro name> <path to destination> <path to source> --version 2 |
delete virtual OS:
1 | wsl --unregister <distribution name> |
change default user:
1 | sudo vim /etc/wsl.conf |
change the path you are while log in:
1 | vim ~/.bashrc |
wsl2 network connect to windows’
in C:/user/
content:
1 | [wsl2] |
command lines homepage
click here to come back to command line homepage.
All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.





