Coming from a windows background and recently tried ubuntu 9.10 and started liking it. On windows it was really easy copying files between windows machines.
 
Now moving to the ubuntu, please help file directory copying in linux. I like to know how to copy between two ubuntu machines.

1 answers, votes, 1359 views
Visitor's picture
asked by Visitor
2 years 12 weeks ago



1 Answers

Answer

Use secure copy command scp
 
Syntax
scp <source file> user@host:<target dir/filename>
 
For example
scp index.html john@192.168.1.1:/var/www/sites/site1/index.html
 
Make sure you have the write permission to the target directory (in this case site1)
 
Hope this helps.

Visitor's picture
answer by Visitor
2 years 12 weeks ago
  • are the index.html a folder by you ?
    it's easy to copy files, but it not works for directories i think.
     

    - Visitor 1 year 34 weeks ago
  • Ubuntu 11.04 released!

    Ubuntu 11.04 code named natty narwhal is released download ubuntu 11.04

    Read ubuntu 11.10 reviews and share yours now!!

    View in your own language!

    Stay Connected

    Ubun2.com on Facebook Ubun2.com on Twitter RSS Feeds

    Poll

    Favorite desktop environment?: