1.scp远程复制命令
scp可以实现对计算机的文件复制
[root@hadoop03 hadoop]# scp -r /root/桌面/hadoop root@hadoop01:/root/桌面/ a.txt 100% 5 0.0KB/s 00:00 b.txt 100% 49 0.1KB/s 00:00 [root@hadoop03 hadoop]#
把hadoop3的/root/桌面/hadoop路径下的文件复制到hadoop01的/root/桌面/上
2.rsync远程复制命令
[root@hadoop03 hadoop]# scp -r /root/桌面/hadoop root@hadoop01:/root/桌面/ a.txt 100% 5 0.0KB/s 00:00 b.txt 100% 49 0.1KB/s 00:00 [root@hadoop03 hadoop]# ^C [root@hadoop03 hadoop]# rsync -rvl /root/桌面/hadoop root@hadoop02:/root/桌面/ sending incremental file list created directory /root/桌面 hadoop/ hadoop/a.txt hadoop/b.txt sent 215 bytes received 54 bytes 538.00 bytes/sec total size is 54 speedup is 0.20