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 list of exclusions for 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!
Donations: https:/
View full history Series and milestones
trunk series is the current focus of development.
All packages Packages in Distributions
-
safe-rm source package in Xenial
Version 0.12-2 uploaded on 2016-01-19 -
safe-rm source package in Trusty
Version 0.10-4 uploaded on 2014-02-01 -
safe-rm source package in Precise
Version 0.8-4 uploaded on 2010-12-22 -
safe-rm source package in Hirsute
Version 1.1.0-2 uploaded on 2021-01-19 -
safe-rm source package in Groovy
Version 0.12-10 uploaded on 2020-08-22
All bugs Latest bugs reported
-
Bug #1905830: Include a .desktop file in the tarball
Reported on 2020-11-27 -
Bug #1893500: Please also let this app read /usr/local/etc/safe-rm.conf
Reported on 2020-08-29 -
Bug #1854103: Rewrite in Rust
Reported on 2019-11-26 -
Bug #1854102: Blacklist /usr/bin/env by default
Reported on 2019-11-26 -
Bug #1398437: Trailing slash in .config/safe-rm don't work as expected
Reported on 2014-12-02
More contributors Top contributors
- François Marier 66 points
- Shiki Suen 4 points