Top-Level Paths
Blocks commands such as `rm -rf /etc`, `rm -rf /bin`, and `rm -rf /`.
Linux rm safety guard
A small protection layer for interactive shells that blocks dangerous top-level delete commands while keeping normal `rm` usage familiar.
Install the latest stable RMGuard release from the tagged source.
$ git clone -b v1.0.0 https://github.com/Happyuky7/RMGUARD-Linux.git
$ cd RMGUARD-Linux
$ chmod +x scripts/*.sh src/rmguard src/rmguard-cli test/rmguard_test.sh
$ sudo bash ./scripts/install.sh
$ source /etc/profile
$ rmguard --status
Blocks commands such as `rm -rf /etc`, `rm -rf /bin`, and `rm -rf /`.
Loads through `/etc/profile.d` so system scripts and services stay untouched.
Supports deliberate overrides with `RM_GUARD=0` or `--no-guard`.
Short entry points for users, packagers, and contributors.
Follow the author site, support future work, or open the source on GitHub.