0

I had a small question concerning something in Ubuntu. I noticed that whenever I cd to a two-word place, Ubuntu seems to go there. However, when I mention the file path to this place, Ubuntu splits up the text.

Here is the original cd, and, as seen, it can easily go to the specified area.Yet, when I mention the file path to the place, it doesn't work.

As seen, in the first picture, the system can go to the specified place. However, when I mention the file path to the two-word place, Ubuntu seems to split up the two words and search for either of them, which don't exist.

Can someone help?

Note: I have tried '' instead of "" around the file, but it still doesn't work. I am also using the Linux application on Windows (which, yes, I know is very dangerous).

muru
  • 207,228

2 Answers2

5

Please use quotation marks around the entire path, this is required when there are folder or filenames containing spaces.

phixion
  • 66
4

Escape spaces in directory or filenames with \ symbol. For example, to change directory to ~/Some Dir use command

cd ~/Some\ Dir
pomsky
  • 70,557
slava
  • 4,085