top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How can we copy file from one host to other in Unix

+3 votes
568 views
How can we copy file from one host to other in Unix
posted Feb 23, 2014 by Prachi Agarwal

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

+1 vote
 
Best answer

scp source dest

where dest would be in the format [user@]host:path

That's of course of one of the methods. You can do ftp or sftp too. You can mount remote drive in to local host and simply do cp and such..

answer Feb 23, 2014 by Mehul Bhatt
0 votes

Through scp command we can achieve this.

scp user@server:file1 user@server:file2

FTP & SFTP can also be used to copy the file from one server to another.

If transaction is in between windows and unix then get, put command will also be used.

answer Jun 11, 2014 by Shatark Bajpai
...