> so when you try "rm -r *" from / it expands the -i too and asks you for
> permission. Note that this doesn't protect you from "rm -r /"
Or even better, add an alias into your root .bashrc (or .cshrc or whatever)
such as
alias rm 'rm -i'
its saved my life many a time :)
Rob.
:-> "Phillip" == Phillip Deackes <[EMAIL PROTECTED]> writes:
> Peter Allen <[EMAIL PROTECTED]> wrote:
>> My box has even survived an incredible big mistake I just made.
>> I was running as root, in /usr
>> Instead of typing rm -r gimp* I typed rm -r *
>> Thank goodness star off
Peter Allen <[EMAIL PROTECTED]> wrote:
> My box has even survived an incredible big mistake I just made.
> I was running as root, in /usr
> Instead of typing rm -r gimp* I typed rm -r *
> Thank goodness star office is big enough to get in the way of anything
> important being deleted before I reali
3 matches
Mail list logo