Best Answer: How Do I Copy a File to All Subfolders in Linux?
Contents

If you want to copy directory, including all its files and subdirectories, use -R or -r option with cp command. The above command will create a destination directory and copy all files and subdirectories recursively to the /opt directory.

How do I copy a file to all subfolders?

If you need to copy a file to multiple folders, you can hold down the Ctrl key, and drag the file or folder on to each folder you want to copy it to. This is time consuming since you still have to drop the file on to every single folder you want to copy the file (or folder) to.

How do I paste a file into multiple folders?

To copy one file into multiple foders, follow the steps given below :

  1. Right click on any file and choose Copywhiz ->Copy.
  2. Right click any where inside a folder and choose Copywhiz ->Paste Advanced.
  3. Drag and drop destination folders over the “Destination Folders” window.
  4. Click Paste Now button. That’s all.
James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest