LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   directories with capitol letters (https://www.linuxquestions.org/questions/linux-newbie-8/directories-with-capitol-letters-398258/)

davidleroux1 12-31-2005 07:32 PM

directories with capitol letters
 
I have some directories with capital letters and I can
use the shell command cd to change to these directories
except if the directory name has space such as.

MY PHOTOS

I think there is some bash trick to change to a directory
like that but I could not find. of course I can use konqueror
to navigate there but I would like to know how to on the
shell command.

Berhanie 12-31-2005 08:03 PM

Code:

cd MY\ PHOTOS
You can also use bash completion (hit the <tab> botton after typing "MY").
Best of all, change the directory name.

pixellany 12-31-2005 08:25 PM

The subtle trick in the last post is called "escaping". The backslash causes the space to be seen as part of the name.

Note also that you can simply use quotes---easier if there are multiple gaps in a file name.


All times are GMT -5. The time now is 10:02 AM.