将要传输的文件夹打包# xxx为文件夹名 tar -zcvf xxx.tar.gz xxx传输文件用scp命令传输文件# file_path_1:本地文件路径 # file_path_2:远端文件路径 scp file_path_1 root@192.168.1.1:file_path_2例子scp /home/test/news.txt root@192.168.1.1:/var/tmp/...
https://blog.csdn.net/oschina_41140683/article/details/89844081