RE: how do I set 'home' for root

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxx>


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux