Mar 222009
 

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.

 Posted by at 9:02 am

 Leave a Reply