How to change default directory in Windows Subsystem for Linux
You should only change the startingDirectory for WSL (Ubuntu in this case) terminal sessions. Open settings.json via CTRL+SHIFT+, in Windows Terminal1 Make sure you are modifying startingDirectory under profiles/list/name: “Ubuntu” Example below (the slashes need to be escaped): …. { “guid”: “{2c4de342-xxx-xxx-xxx-2309a097f518}”, “hidden”: false, “name”: “Ubuntu”, “source”: “Windows.Terminal.Wsl”, “startingDirectory”: “\\\\wsl$\\Ubuntu\\home\\windows_username_in_lower_case” }, …. Documentation about startingDirectory … Read more