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.
[ Get regularly scheduled insights by signing up for Network World newsletters. ]
Source:: Network World – Linux