使用scp复制多个文件根据文件传输方向的不同,可以分为两种情况:
远程服务器拷贝多个文件到本地本地上传多个文件到远程服务器
1、远程服务器拷贝多个文件到本地
$scpusername@:/from/path/\{a,b,c\}./
2、本地上传多个文件到远程服务器
$scpfoo.txtbar.txtusername@:~$scp{foo,bar}.txtusername@:~$scp*.txtusername@:~
时间:2024-03-30 19:07:55
使用scp复制多个文件根据文件传输方向的不同,可以分为两种情况:
远程服务器拷贝多个文件到本地本地上传多个文件到远程服务器
1、远程服务器拷贝多个文件到本地
$scpusername@:/from/path/\{a,b,c\}./
2、本地上传多个文件到远程服务器
$scpfoo.txtbar.txtusername@:~$scp{foo,bar}.txtusername@:~$scp*.txtusername@:~