How to copy File or Directory from Local Machine/Remote Server to remote Linux server

There are two ways.

My preference is generally as follows.

scp -r sourcedir/ user@:/dest/dir/





or

rsync -auv -e ssh –progress sourcedir/ user@dest.com:/dest/dir/

or

rsync -avlzp sourcedir/ user@:/dest/dir/

you can put file name instead of sourcedir to copy file too.

Leave a Reply

Your email address will not be published.