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

Copy A File To Multiple Directories

2 Responses

  1. zorg6 says:

    Keep It Short and Simple.

    You can do it simply by :

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

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.