Hey, how do I cd to directories with spaces in them? I'm browsing my windows drive and I type:
[j@localhost windows]$ cd Program Files
bash: cd: Program: No such file or directory
I also tried Program%Files but it didn't work either.
Oh shoot, I used to remember how to do this... but now I am just lazy when using cd and use wildcards... so in your case I would just type something like:
That will work as long as you don't have two directories that are spelled the same prior to the space and differently after...
try encapsulating the entire directory name within quotation marks..
cd "my directory"
hmmm......good question :)
when you want to go to a directory with spaces, for example (c:\)Program Files,
cd /Program\ Files
i think it also works with question marks aso....
the backslash is the key :)
I always just put it in quotation marks. Seems easiest.
|All times are GMT -5. The time now is 08:20 AM.|