1、拷贝本机/home/qxc/tx整个目录至远程主机192.168.1.100的/home/qxc目录下。-r:recursive
scp -r /home/qxc/tx/ root@192.168.1.100:/home/qxc
2、拷贝单个文件至远程主机
scp /home/qxc/tx/test.txt root@192.168.1.100:/home/qxc
3、远程文件/文件夹下载
举例,把192.168.62.100上面的/root/文件夹,下载到本地的/home/qxc/tx/下,使用远程端的root登陆
scp -r qxc@192.168.62.100:/root/ /home/qxc/tx