Copy Bulk Files in Linux

1 points by Gabriel9999 ↗ HN
I have multiple files in a Linux systems where I want to copy them with a single cp command into a different path and directory. Should I write a bash script to copy one by one?

3 comments

[ 3.5 ms ] story [ 16.1 ms ] thread
My go-to would be tar:

`$ tar -C $source-dir -c . | tar -C $dest-dir -x`