Right! while copying few files from one location to other, I might have to overwrite the files and I will be forced to say yes all the time to continue with the copy. At times, We don’t even want to break our head with it. We move the folder or files and copy the new files. If you really want to over write without being prompted you can just add “--reply=yes” to avoid the copy process to prompt for the answer.
This is how your command will look like after adding the above option.
cp -pR --reply=yes * ../htdocs



