{ads}

How to copy files to multiple locations on Linux



September 09, 2022 at 02:31AM

Using a series of commands to copy a file to multiple locations or a number of files to a single location can be time-consuming, but there are options to speed up the process. This post explains some of them.

Multiple commands like these can to copy a single file to a series of directories on your system:

$ cp myfile dir1
$ cp myfile dir2
$ cp myfile dir3

One way to make the task easier is typing the first command and then repeat the command by only specifying the needed changes. This method relies on whether the file or directory names are similar enough to substitute only some portion of the names.



from Network World https://ift.tt/OcX9fas

0 Response to "How to copy files to multiple locations on Linux"

Post a Comment

Article Top Ads

Central Ads Article 1

Middle Ads Article 2

Article Bottom Ads