Using scp(1) to transfer multiple files

Software

In today’s instalment of things you already know, unless you don’t, you can use wildcards in scp(1) when transferring files:

$ scp user@host:file-* .

This came up during a customer call last year, where the engineer was running it a few times. On the backend it’s sftp(1) now anyway, as it probably should be.

Author bio and support

Me!

Ruben Schade is a technical writer and infrastructure architect in Sydney, Australia who refers to himself in the third person in bios. Hi!

The site is powered by Hugo, FreeBSD, and OpenZFS on OrionVM, everyone’s favourite bespoke cloud infrastructure provider.

If you found this post helpful or entertaining, you can shout me a coffee or send a comment. Thanks ☺️.