Copy bulk Files in Linux

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Gabriel9999
    New Member
    • Jul 2019
    • 15

    Copy bulk Files in Linux

    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?
  • edizgeorgi
    New Member
    • Oct 2019
    • 8

    #2
    No. You shouldn’t write a bash script. Just use the cp command bulk copy feature and provide all files you want to copy and add the path which is the destination.
    cp file1 file2 file3 /mnt/backup
    Last edited by Rabbit; May 6 '20, 03:08 PM. Reason: External link removed per forum policy

    Comment

    Working...