1.用 “其它” 文件 复制到本地当前:
scp your_username@remotehost.cn:1.txt ./
2.将文件 复制给 他人remote路径下
scp 1.txt your_username@remotehost.cn:/remote
3.复制文件夹 foo 到本地
scp -r your_username@remotehost.cn:/foo ./
4.同样将文件夹复制给他人 remote路径下
scp -r ./foo/ your_username@remotehost.cn:/remote
5.复制部分文件files 给他人:
scp 1.txt 2.txt your_username@remotehost.cn:/remote
6.将指定的files 复制到本地:
scp your_username@remotehost.edu:~/\{foo.txt,bar.txt\} ./
7.复制指定文件夹 foo bar:
scp your_username@remotehost.edu:~/\{foo,bar\} ./