Ubuntu: cp copy overwrite without prompting

when you run: cp -rf /source/* /destination , it always ask you to confirm the overwrite action.

Root cause: it’s probably the cp has been alias as cp -i Fix:

/bin/cp -rf /source/* /destination

or

yes | cp -rf /source/* /destination

 

Leave a Reply

Your email address will not be published. Required fields are marked *