修改/etc/resolv.conf:
# cat resolv.conf
# This file was automatically generated by WSL. To stop automatic generation of this file, add the following entry to /etc/wsl.conf:
# [network]
# generateResolvConf = false
nameserver 192.168.190.1
WSL中打开当前目录的文件管理器界面:
# find the home folder
cd ~
# open up windows explorer for this folder
explorer.exe .
网络路径是: \\wsl$\Ubuntu\root