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

Re: RFC: preventing accidental deletion of system directories

On Sat, Mar 22, 2008, Francois Marier wrote:
> P.S. I realize that 'rm' is a low-level command which should do what it's
> told, but the reality is that a lot of people use it directly on a daily
> basis and can accidently hose their system.  I don't want to implement a
> "command-line trashcan", but I'm looking for a way to prevent me from doing
> things I should never ask for (like 'rm -rf /usr/lib/').

 Should the solution be in rm?  What about chattring the tree, or
 keeping a cp -aled version, or a backup?

Loïc Minier

Reply to: