accessing files & directories - a really simple question
Here's a question that probably everybody but me knows the answer to.
I have a file server running on Win 2k, the files on which, as of a few hours ago, I am successfully able to access. The small problem I'm having is, from the command line, accessing those files & directories which are more than a single word or that contain spaces. Is there a substitute character in Linux that means "space bar" ?
For example, if I'm trying to navigate to the directory "Vince Guaraldi Trio" located on /mnt/mediaserver, I've tried:
$ cd /mnt/mediaserver/Vince Guaraldi Trio
Then, as you know, I get the error message:
bash: cd: Vince: No such file or directory
I know I can successfully get there by:
But what if I had 2 directories, one called "Vince Guaraldi Trio" and one called "Vince Vaughn Sings The Blues", how would I cd to "Vince Vaughn Sings The Blues" ?
Of course I can do all this stuff from the gui, but I'm trying to learn to do as much in the terminal as I possibly can.
Thanks for the response...but here's what I get when I do that:
[hildog@localhost hildog]$ cd /mnt/mediaserver/Vince\Guaraldi\Trio
bash: cd: /mnt/mediaserver/VinceGuaraldiTrio: No such file or directory
It looks like it doesn't think that the \ is supposed to be a space ? Is that right ?
cd /mnt/mediaserver/Vince \Guaraldi \Trio
cd /mnt/mediaserver/Vince\ Guaraldi\ Trio
it has to work don't remember....
but i know is something like that...
let me get to my linux box!!!
It's the 2nd one. thanks.
one way to find out the exact format is to type out the name of the directory/file as far as you can and then press TAB to expand it.
If a file name contains spaces, it's
part1\ part2\ part3\ ...
(a \ followed by a space instead of just a space)
|All times are GMT -5. The time now is 12:32 AM.|