Re: /bin/rm
Richard Dawe <[email protected]>
| Newsgroups | gmane.comp.gnu.fileutils.bugs |
|---|---|
| Message-ID | <[email protected]> |
Hello. [email protected] wrote: [snip] > 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. ;) Regards, -- Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]