LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   command path question (https://www.linuxquestions.org/questions/linux-newbie-8/command-path-question-24159/)

tied2 06-23-2002 07:09 PM

command path question
 
(os) RH 7.1
ok, If I'm on my linux box and i'm networked to my windows box in a terminal window ie: cd /root/mnt/winbox/C and then I do ls command it lists files ok after C if i type a file that has a one word name it will open like WINDOWS. But if i type MY Documents it get as far as My: and stops. What do I have to do to get it to open a two word file such as My Documents ?


Thanks !

joel1 06-23-2002 09:45 PM

Not quite sure exactly what you mean however:

to cd to mydocuments

cd my documents won't work

need to do

cd "my documents"

hope this helps

neo77777 06-23-2002 10:17 PM

You must escape spaces with \ (back slash character)like this
ls My\ Documents
or put the whole thing in double quotes
ls "My Documents"

tied2 06-24-2002 05:06 AM

Ok now what if I want to open say a jpg pic in my documents??

acid_kewpie 06-24-2002 05:12 AM

what about it? you'd run a program with the file name as the input.... :confused:


All times are GMT -5. The time now is 06:30 AM.