after Build 17093
- 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
to take effect you should exit and relaunch shell
default wsl.conf settings
[automount] enabled = true mountFsTab = true root = "/mnt/" options = [network] generateHosts = true generateResolvConf = true [interop] enabled = true appendWindowsPath = true
Exiting and relaunching doesn't update changes in wsl.conf. Terminating WSL from PowerShell using
wslconfig /t Ubuntucommand works. I am on WSL2 currently.