Copy bulk Files in Linux

Discussion in 'Linux' started by Gabriel9999, May 4, 2020.

Tags:
  1. Gabriel9999

    Gabriel9999 MDL Novice

    Mar 11, 2019
    37
    5
    0
    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?
     
  2. jim_p

    jim_p MDL Member

    Dec 11, 2013
    240
    74
    10
    I think that something like this is far easier
    Code:
    cp -v /source/directory/ /destination/directory/
    The -v switch is to show you the progreess of the copy procedure, e.g. "copying file /source/directory/jim.txt to /destination/directory/jim.txt". You can omit it if you wish.