With scp, copying several files such as file1 file2 to remote site can be passed by command line like
使用scp,可以通过命令行传递将多个文件(例如file1 file2)复制到远程站点的信息
$ scp file1 file2 user@remote:
But how to scp multiple files from remote to local on Linux?
但是,如何在Linux上将多个文件从远程文件复制到本地文件?
You can do similar things by at least 2 method with scp:
您可以使用scp通过至少2种方法执行类似的操作:
$ scp user@remote:file{1,2} ./
$ scp user@remote:"file1 file2" ./
Or for a list of files in the same naming format like file1, file2, … file9:
或使用相同命名格式的文件列表,例如file1,file2,…,file9:
$ scp user@remote:file? ./
Answered by Eric Z Ma.
埃里克·马(Eric Z Ma)回答。
翻译自: https://www.systutorials.com/how-to-scp-multiple-files-from-remote-to-local-on-linux/