News and announcements
safe-rm 0.1 released
Written for Safe-rm by François Marier on 2008-06-07
As mentioned on the debian-devel mailing list (http://
Basically, the wrapper has a blacklist which contains directories like /usr/lib, /home, /etc and removes those before passing its arguments to the real 'rm' command.
I'm probably not the only person to have made this mistake and who wants to avoid doing it again. So I'm thinking of turning it into something that's useful to other people (probably packaging it in some form).
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/').