[Ilugc] One Day One GNU/Linux Command (RM)

  • From: kapil@xxxxxxxxxxx (Kapil Hari Paranjape)
  • Date: Sat Jun 21 05:57:11 2008


On Friday 20 Jun 2008, Sudharshan S wrote:

You forgot this,

   rm -rf / -- Shortcut to get yourselves fired for the rest of your
life

DISCLAIMER: Am not responsible for lost jobs now.

Actually, if you install "safe-rm" then you may be safe!
This package just recently entered Debian unstable.

Package: safe-rm
Priority: optional
Section: utils
Installed-Size: 104
Maintainer: Francois Marier <francois@xxxxxxxxxx>
Description: wrapper around the rm command to prevent accidental deletions
Tool which prevents the accidental deletion of important files by
replacing rm with a wrapper which checks the given arguments against a
configurable blacklist of files and directories which should never be
removed.

Users who attempt to delete one of these protected files or
directories will not be able to do so and will be shown a warning
message instead.

Protected paths can be set both at the site and user levels.

Homepage: http://people.debian.org/~francois/safe-rm/

Other related posts: