Rajesh Chaudhary Asked: 2019-02-11 01:32:43 +0800 CST2019-02-11 01:32:43 +0800 CST 2019-02-11 01:32:43 +0800 CST How to copy files from folders and subfolders and paste to a single folder? 772 I want to copy all the final files from parent folder and child folders to a different folder. How to do that? server directory files 1 Answers Voted Best Answer Prvt_Yadav 2019-02-11T02:07:26+08:002019-02-11T02:07:26+08:00 What I understood is that you want to copy all files from a folder which has sub-folders to a destination folder. You can use: find source_directory -type f -exec cp -t destination_folder "{}" \+ Or you can just use the copy command as suggested in the comments like: cp -p source_directory/* destination_directory
What I understood is that you want to copy all files from a folder which has sub-folders to a destination folder.
You can use:
Or you can just use the copy command as suggested in the comments like: