I know it's a dumb question, but Terminal can't read my directories when there are spaces in the file/folder names, so I'm wondering what the "substitute" for [space] is?
I know it's a dumb question, but Terminal can't read my directories when there are spaces in the file/folder names, so I'm wondering what the "substitute" for [space] is?
type normally but put a \ after the word and before the space
ie: cd ~/home/New\ Volume/movies/new\ stuff
Debian Testing(64bit) + XFCE4 AM2 5200+ ATI Radeon HD4350, 4gig RAM,320Gig and 750gig HDs
what's the difference between an answer and a solution? An answer is what they want to hear, a solution is what they don't want to hear
or create directories with one word or underscores
like NewDirectory or New_Directory
And don't forget capital letters make a difference in Linux
/New Directory and /new directory would be two different folders on a Linux Machine.
Or you can type the name of the folder until [space] and then hit tab to auto complete ...
or you can use quotes
cd "~/home/New Volume/movies/new stuff"
lotsa ways
or, put the path in quotes.
whoops, too late.
You can also enclose the entire directory path in quotation marks, like
You can also drag a folder icon from a Nautilus window onto a terminal session and it will enter the full path to the folder at the prompt.cd '/home/myhome/Documents/folder name with spaces in it/'
Ooh, three of us with the same answer at the same time!
Last edited by DrOlaf; August 15th, 2008 at 04:16 PM. Reason: Me too!
Ubuntu? Eranu!
Oh don't worry. I'm also didn't know how to use space in terminal. But thanks! because of your question, now I understand how to use it. Sometimes for newbie like us, This kind of question is really usefull.
Thanks
Helped me playing wow at last
Bookmarks