Try an scp. the kicker is the way in which the remote server is handled. but try

scp filename.txt user@remotehost:path/to/filename.txt

I can't remember what to do about spaces as quotes do not work at least for me.

The password will be taken care of during the scp as you will be prompted. 
> On Oct 21, 2014, at 12:19 PM, Gordon Smith <gor...@mac-access.net> wrote:
> 
> Hi all
> 
> What would be the command to copy a file in the Terminal from one directory 
> to another?  For instance, I want to copy a file called content.htm from 
> /usr/local/Server to /usr/local/server/web/ and optionally move the file at 
> the same time.  Command syntax, please, any of you Linux users?
> 
> Many thanks.
> 
> Gordon
> 
> <--- Mac Access At Mac Access Dot Net --->
> 
> To reply to this post, please address your message to 
> mac-access@mac-access.net
> 
> You can find an archive of all messages posted    to the Mac-Access forum at 
> the list's public Mail Archive:
> <http://www.mail-archive.com/mac-access@mac-access.net/>.
> Subscribe to the list's RSS feed from:
> <http://www.mail-archive.com/mac-access@mac-access.net/maillist.xml>
> 
> As the Mac Access Dot Net administrators, we always strive to ensure that the 
> Mac-Access E-Mal list remains malware, spyware, Trojan, virus and worm-free.  
> However, this should in no way replace your own security strategy.  We assume 
> neither liability nor responsibility should something unpredictable happen.
> 
> Please remember to update your membership preferences periodically by 
> visiting the list website at:
> <http://mail.tft-bbs.co.uk/mailman/listinfo/mac-access/options/>

<--- Mac Access At Mac Access Dot Net --->

To reply to this post, please address your message to mac-access@mac-access.net

You can find an archive of all messages posted    to the Mac-Access forum at 
the list's public Mail Archive:
<http://www.mail-archive.com/mac-access@mac-access.net/>.
Subscribe to the list's RSS feed from:
<http://www.mail-archive.com/mac-access@mac-access.net/maillist.xml>

As the Mac Access Dot Net administrators, we always strive to ensure that the 
Mac-Access E-Mal list remains malware, spyware, Trojan, virus and worm-free.  
However, this should in no way replace your own security strategy.  We assume 
neither liability nor responsibility should something unpredictable happen.

Please remember to update your membership preferences periodically by visiting 
the list website at:
<http://mail.tft-bbs.co.uk/mailman/listinfo/mac-access/options/>

Reply via email to