Linux- remote copy (scp command)

surroundings:
Here Insert Picture Description

The files are in hadoop1-101

Objective: To copy files on hadoop1-101 to several other systems

1, the copied onto hadoop1-102 hadoop1-101

scp:拷贝命令
-r :递归
moudle:源资源 
root@hadoop102:/opt/module
用户@主机:/地址
[root@hadoop101 opt]# scp -r module root@hadoop102:/opt/module

2, pulling on hadoop1-103 file in hadoop1-101

[root@hadoop103 ~]# scp -r root@hadoop101:/opt/module /opt/module
Published 79 original articles · won praise 70 · views 20000 +

Guess you like

Origin blog.csdn.net/qq_17623363/article/details/102176904