There’s a reason why cp is aliased to cp -i in _root’s_ .bashrc and .cshrc/.tcshrc.
After all, do you really want root to be able to overwrite a file without checking?
There is a way around the problem that retains the copy protections in root’s shell. Here’s how:
\cp -f
Backslashing the command temporarily avoids the alias done in the shell but does not permanently remove the protection.
Was this post helpful?
Let us know if you liked the post. That’s the only way we can improve.