unix

How do I scp multiple files simultaneously on my Linux server?

To scp multiple files, depending on the file names, there are two options; use a wildcard or list the files individually.

scp myserver.mydomain.com:”/tmp/file1 /tmp/file2 /tmp/file3″ /my/local/directory

or if the files have a similar name

scp myserver.mydomain.com:/tmp/file* /my/local/directory

Click to comment

Leave a Reply

Your email address will not be published. Required fields are marked *

To Top