Change the behavior of the copy (cp) command overwrite the existing file without prompt
Edit $HOME/.bashrc, because Red Hat adds alias cp=‘cp -i’.
Thus the -r option has no effect. To fix this, comment out alias cp=‘cp -i’ with #, then log out and log back in. You can now use cp with -f.
Example:
#cp -f /file /existing file