safe-rm

wrapper around the rm command to prevent accidental deletions

Install

All systems
curl cmd.cat/safe-rm.sh
Debian Debian
apt-get install safe-rm
Ubuntu
apt-get install safe-rm
image/svg+xml Kali Linux
apt-get install safe-rm
Windows (WSL2)
sudo apt-get update sudo apt-get install safe-rm
OS X
brew install safe-rm
Raspbian
apt-get install safe-rm

safe-rm

wrapper around the rm command to prevent accidental deletions

This package provides a tool intended to prevent 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 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. Protected paths can be set both at the site and user levels.