[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Thu, 19 Dec 2002 18:59:10 +0000
> It would be great to have a prompt asking if you want to remove your entire
> partition prior to ever executing rm -rf /* no matter how it was entered on
> the command line. Do you know of a modified version of rm that does that,
> and if not, what would it take to modify the existing one? I know you are
> suppose to know what you are doing if you log in as root, but we are all
> human and make dumb mistakes. Thanks for your time.
You could set up an alias for 'rm'. I have the following aliases in
/root/.bashrc on my Linux box:
alias cp='cp -i'
alias mv='mv -i'
alias rm='rm -i'
Indeed, even root makes mistakes sometimes. ;)
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]
- /bin/rm, bensonoff, 2002/12/19
- Re: /bin/rm,
Richard Dawe <=
- Re: /bin/rm, Alfred M. Szmidt, 2002/12/19