how do I set 'home' for root

Paul Howarth paul at city-fan.org
Wed Apr 27 21:34:08 UTC 2005


On Wed, 2005-04-27 at 17:24 -0400, Erik Hemdal wrote:
> # .bashrc
> # User specific aliases and functions
> alias rm='rm -i'
> 
> This alias replaces the 'rm' command with 'rm -i', so that root will 
> always be prompted before removing any file.  This is a safety precaution.

But a very unwise safety precaution, especially for a root user. People
that have this alias get used to it being there, and can end up doing
something like "rm *" when they want to remove several files, answering
"y" or "n" to each file. Trouble is, some day they will do this on a
system that doesn't have the alias set up... and it might be their own
system if their .bashrc got corrupted. And then they'd delete all their
files before they realised what had happened. So I would advise strongly
against using an alias like this.

Paul.
-- 
Paul Howarth <paul at city-fan.org>




More information about the fedora-list mailing list