Space character in terminal

Asked by Emad William

If there's a folder named "My Projects", and I typed in the terminal "cd My Projects", it tells me that the folder "My" couldn't be found.
Is that because the terminal thinks the the space is between the path and the arguments of "cd" ?
Please tell me how to use paths in the terminal that contains space.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Zombie
Solved:
Last query:
Last reply:
Revision history for this message
Best Zombie (initramfs) said :
#1

Emad William,

cd My\ Projects should work.
My + Tab should work too. . .

With Regards,
Zombie.

Revision history for this message
Emad William (emadwilliam) said :
#2

Thanks Zombie, that solved my question.

Revision history for this message
Thinboy00 (thinboy00) said :
#3

you could also do cd "My Projects" or even cd 'My Projects' I recommend using single quotes when possible, unless you need a backslash escape or a single quote in the path name.