LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-15-2004, 10:05 AM   #1
ar1
Member
 
Registered: Nov 2003
Location: Bloomington, IL, USA
Distribution: Fedora Core 3
Posts: 126

Rep: Reputation: 15
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
 
Old 01-15-2004, 10:14 AM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 56
Try putting quotes around the spaced file name....

/mnt/windows/"Documents and Settings"
 
Old 01-15-2004, 10:37 AM   #3
ar1
Member
 
Registered: Nov 2003
Location: Bloomington, IL, USA
Distribution: Fedora Core 3
Posts: 126

Original Poster
Rep: Reputation: 15
Nope, it doesn't work with the quotes either. Same problem ie. it only gets the part before the space.

Any other suggestions?
 
Old 01-15-2004, 10:41 AM   #4
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

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

as in: /Documents\ and\ Settings/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to handle file names with spaces in them bahadur Programming 14 04-04-2005 12:04 PM
how to handle file names with spaces in them bahadur Programming 3 03-23-2005 05:15 AM
du or wc and file names with spaces bramadams Slackware 2 01-27-2005 11:43 AM
Spaces in folder/file names ~ termial Garoth Linux - Software 1 11-12-2004 01:56 PM
Spaces in file names JohnKFT Slackware 3 11-09-2004 03:44 PM


All times are GMT -5. The time now is 06:45 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration