cp
command and power an overwrite. cp - rf/foo/*/bar
, yet I am as yet provoked to affirm each overwrite.
/bin/cp -rf /zzz/zzz/ /xxx/xxx
yes | cp -rf /zzz/zzz/ /xxx/xxx
cp
to cp -i;
because with the default settings, cp
won't ask to overwrite. Check your .bashrc
, your .profile
etc.alias
command:$ alias
alias cp='cp -i'
alias diff='diff -u'
....
$ unalias cp