On Wed, Oct 13, 2010 at 1:28 PM, benedict nicholas <
[email protected]> wrote:

>
>  Dear Mohanraj,
>
> For copying a folder named ns2 to a remote host with ip 172.16.2.100 root
> login,
>
> scp -r ns2  [email protected]:/root
>
>
> scp -r [email protected]:/home/user1/ns2    [email protected]:
> /home/user2
>
>

   - FILE
      - from remote to local
         - $ scp [email protected]:"/media/sda6/Tutorials/Linux\\
         Unix/linux_book.pdf" /home/narendra/data
      - from local to remote
         - $ scp /home/narendra/linux_book.pdf
[email protected]:"/media/Tutorials/Linux\\
         Unix/"


   - DIRECTORY
      - $ scp -r [email protected]:"/media/sda8/Linux\\ Software"
      /home/narendra/software

Note that the name of the folder is *Linux Software* and there is a space
between both words. so \\ come before space.

Taken from :-- http://lug-iitd.org/Shell_Scripts#SCP
-- 
┌─────────────────────────┐
│    Narendra Sisodiya
│    http://narendrasisodiya.com
└─────────────────────────┘
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to