[Requires WSL Build 17093 or above]
You can override WSL's settings by editing /etc/wsl.conf
in the WSL filesystem. (Normally, this file doesn't exist at first.)
$ sudo vi /etc/wsl.conf
[interop]
appendWindowsPath = false
For the new WSL settings to take effect, you should shut down and then restart WSL - from Windows:
c:\Users\you> wsl --shutdown
Now check your path inside WSL:
$ echo $PATH
[automount]
enabled = true
mountFsTab = true
root = "/mnt/"
options =
[network]
generateHosts = true
generateResolvConf = true
[interop]
enabled = true
appendWindowsPath = true