LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   File/Direcory Names with Spaces (https://www.linuxquestions.org/questions/linux-general-1/file-direcory-names-with-spaces-135079/)

ar1 01-15-2004 10:05 AM

File/Direcory Names with Spaces
 
I'm trying to get a file from another machine using scp. The path of the remote file is:

/mnt/windows/Documents and Settings/A R/Desktop/Schedule Spring 2004.doc

Now I did the following command at the terminal for the scp:

scp abc@xx.xx.xx.xxx:/mnt/windows/Documents and Settings/A R/Desktop/Schedule Spring 2004.doc

[I obviously put the ip in place of the x's]

It seems linux wants a particular syntax for directory and file names with spaces.

Can someone please tell me what scp syntax I should use for this file?

Thanks

homey 01-15-2004 10:14 AM

Try putting quotes around the spaced file name....

/mnt/windows/"Documents and Settings"

ar1 01-15-2004 10:37 AM

Nope, it doesn't work with the quotes either. Same problem ie. it only gets the part before the space.

Any other suggestions?

Genesee 01-15-2004 10:41 AM

just a guess - not sure about scp - but did you try backslashes before the spaces:

as in: /Documents\ and\ Settings/


All times are GMT -5. The time now is 11:05 PM.