最常用的几个命令:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
1.把本地的file.txt文件拷贝到192.168.x.x机器上的/home/目录下 scp /home/work/file.text root@192.168.x.x:/home/ 2.把192.168.x.y机器上的file.txt文件拷贝到本地的/home/目录下 scp root@192.168.0.10:/home/work/source.txt /home/ 3.把192.168.x.y机器上的file.txt文件拷贝到192.168.x.y机器的/home/目录下 scp work@192.168.0.10:/home/work/source.txt root@192.168.0.11:/home/ 4.拷贝文件夹,加-r参数 scp -r /home/fold root@192.168.x.y:/home/ |
文章评论