how to write directory names with spaces in between in using the command line

Asked by jessette58

How can change directory if a directory contains spaces in between say 'cd party images' 'party images' is the name of the directory. What should I do. Hi, i'm a complete newbie to ubuntu and linux. I hope I'm still on track.

Question information

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

Hi, there are two ways to do this:

1 - type the directory name between quotation marks (for example: cd "party images")
2 - type the directory normally and before the space use "\" (for example cd party\ images )

Revision history for this message
jessette58 (jessette58) said :
#2

Thank you Vincenzo. That's great!

Revision history for this message
jessette58 (jessette58) said :
#3

Thanks Vincenzo Consales, that solved my question.