Home:ALL Converter>linux subsystem on windows, how to set working directory to a folder on windows?

linux subsystem on windows, how to set working directory to a folder on windows?

Ask Time:2022-12-06T14:20:40         Author:ineedhelp

Json Formatter

I am trying to import a file on windows 11 to a linux subsystem (Ubuntu 22.04.1) while it is connected to docker. I am new to this so I am sorry if I am making obvious mistakes. To my understanding (I am following this tutorial: https://degauss.org/using_degauss.html), I need docker running first and then open my linux subsystem. However once I get to cd then it gives me the following error: -bash: cd: too many arguments. What I need to do is set the working directory to a specific folder so I can proceed with the next step.

typing pwd simply showed me that I am in home\(username I created when installing the linux subsystem)

I am new to linux and docker so an easy to understand answer is greatly appreciated.

Thanks.

I have tried cd and then name of path for example E:\Users\Name\Desktop\folder one\folder two\folder where file is and I got -bash: cd: too many arguments. I also changed \ to / and got the same error. I thought it would set the working directory (folder where file is).

Docker is connected to linux subsystem as I did the hello-world test successfully

Author:ineedhelp,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/74698107/linux-subsystem-on-windows-how-to-set-working-directory-to-a-folder-on-windows
yy