It's a bit non-intuitive, and just as undocumented as the ~ option, but wsl --cd sounds like what you are looking for. It actually takes a Windows path spec, not the WSL/Linux form. So: wsl --cd "C:\Users\My User\repos" If you are using the Windows Terminal Settings UI, then it will automatically provide the proper quoting for you in the ...


Even though you can find these files in the Windows filesystem if you’re using WSL 1, you must not modify the WSL filesystem tree from Windows. You can access these files from your Ubuntu WSL terminal. To delete the file, use the following command: rm ~/.opam/config If you want to access the filesystem using Windows Explorer, you can use the following ...


-R is for relative path name. You are probably in the /root directory, adapt your command or move to /

Only top voted, non community-wiki answers of a minimum length are eligible