How to cd into a directory with space in the name?

前端 未结 14 2320
独厮守ぢ
独厮守ぢ 2020-11-27 05:30

I\'m attempting to get into the directory /cygdrive/c/Users/my dir/Documents:

$ DOCS=\"/cygdrive/c/Users/my\\ dir/Documents\"

$ echo $DOCS
/cyg         


        
14条回答
  •  轮回少年
    2020-11-27 05:55

    Use quotes! cd "Name of Directory"
    Or you can go to the file explorer and click "copy path" in the top left corner!

提交回复
热议问题