preventing the accidental deletion of important files
Safe-rm is a safety tool intended to prevent the accidental deletion of important files by replacing /bin/rm with a wrapper, which checks the given arguments against a configurable blacklist of files and directories that 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:
$ rm -rf /usr
Skipping /usr
(Protected paths can be set both at the site and user levels.)
Recovering important files you deleted by mistake can be quite hard. Protect yourself today by installing safe-rm and reduce the likelihood that you will need to contact a data recovery service!
Git repository: http://
Donations: http://
View full history Series and milestones
trunk series is the current focus of development.
All packages Packages in Distributions
-
safe-rm source package in Zesty
Version 0.12-2 uploaded on 2016-01-19 -
safe-rm source package in Yakkety
Version 0.12-2 uploaded on 2016-01-19 -
safe-rm source package in Xenial
Version 0.12-2 uploaded on 2016-01-19 -
safe-rm source package in Wily
Version 0.12-1 uploaded on 2014-11-03 -
safe-rm source package in Vivid
Version 0.12-1 uploaded on 2014-11-03
All bugs Latest bugs reported
-
Bug #1398437: trailing slash in .config/safe-rm crashes safe-rm on redhat linux
Reported on 2014-12-02 -
Bug #1260930: Protect files which are bind-mounted
Reported on 2013-12-14 -
Bug #1097972: lib32 and lib64 not covered
Reported on 2013-01-09 -
Bug #1070368: safe-rm .desktop file for right-click adding action
Reported on 2012-10-23 -
Bug #1070252: safe-rm should have a "strict" setting
Reported on 2012-10-23




