bug-fileutils
[Top][All Lists]
Advanced

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

Re: /bin/rm


From: Richard Dawe
Subject: Re: /bin/rm
Date: Thu, 19 Dec 2002 18:59:10 +0000

Hello.

address@hidden 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/ ]



reply via email to

[Prev in Thread] Current Thread [Next in Thread]