How To Copy A File To Multiple Directories In Command Line On Linux

Copy A File To Multiple Directories

You may also like...

  • zorg6

    Keep It Short and Simple.

    You can do it simply by :

    for dest in Downloads Documents ; do cp ostechnix.txt “${dest}”; done

    • SK

      Thank you! I never know this command.