Re: how do I set 'home' for root

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

 



On Wednesday 27 April 2005 05:34 pm, Paul Howarth wrote:
> 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>
It would be wise to also "chattr" important files that won't be changed often.

On rm "y" or "n" , I have hit "y" instead of "n" too many times to count.
-- 
John H Ludwig

Common sense is so rare, why do they call it common!!!

Manual customization of this file is not recommended, 
BUT WILL BE DONE!!!


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

  Powered by Linux