- can override settings by edit "/etc/wsl.conf"
- normally this file is not exists at first
$ sudo vi /etc/wsl.conf
[interop]
appendWindowsPath = false
$ exit
c:\Users\user> wsl
$ echo $PATH
[automount]
enabled = true
mountFsTab = true
root = "/mnt/"
options =
[network]
generateHosts = true
generateResolvConf = true
[interop]
enabled = true
appendWindowsPath = true
ELI5 instructions: open /etc/wsl.conf in text editor which is present in wsl distro. If the file is not present in etc directory, create it. And only put this there.
Else modify the above line if it exists. Then do
wslconfig /t Ubuntu
orwsl --shutdown
or simply reboot the pc.