hi, which Command is used for copy a file from one server to another server, please provide the syntax and give one small example...
Thanks in advance
sarwan
You can use rcp, scp, or ftp. You can find examples of each (if your system has all three) in the man pages.
$ man rcp
$ man ftp
$ man scp
Scp is probably the best to use - it a copy using ssh and would be more secure then the others. Sftp is also another option.
and as for a small example:
$ scp source/file.c remoteuser@remoteaddr:remote/dir
$ scp -r remoteuser@remoteaddr:remote/dir ~/tmp
check-out the man pages for good descriptions.