[ale] help with rm (yes, I'm embarrassed about this)

Jim Popovitch jimpop at yahoo.com
Thu Nov 25 19:55:17 EST 2004


On Thu, 2004-11-25 at 12:51 -0500, Tejus Parikh wrote:
> Something that I find helps to avoid major mishaps is having a file
> named "-i" in all important directories (ie ones that you don't
> completely clean out that often). I have it in /home and / along with a
> few other choice places.  Creating such a file is as simple as "touch --
> -i"  

Why not just set the immutable bit on that directory.  I do this on all
of the following:
  /bin
  /boot
  /lib
  /lib/modules
  /sbin
  /usr/bin
  /usr/lib
  /usr/sbin

There are plenty of other important directories, but those are the only
ones that worry me.

-Jim P.




More information about the Ale mailing list