Sunday, February 15, 2015

HowTo fix linux cp always ask for overwrite

Do you want to remove the overwrite feature of cp? use the command below when coping files.

cp -Rf filetocopy.txt destination.txt
** simply add a slash at the front of the cp command because cp is aliased by default to cp -i **

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.