scp命令拷贝文件,拷贝远程Linux上的文件夹到本地,以下List-1.1所示:bash
List-1.1spa
scp -r username@host:/opt/xx/xxx ./
List-2.1code
scp -r localfile.txt username@host:/dir