Safer rm on Linux: a Practical Ring-Fence that Doesn’t Break Automation
Author: Kevin Wells – Tested on: Ubuntu 24.04 LTS (Debian/Ubuntu family) Applies to human interactive shells (user, sudo, root). Automation is intentionally left untouched. Contents Executive summary Design goals Quick start How it works Usage discipline Helper for scripts that “empty” a directory Operational testing checklist Troubleshooting Uninstall / rollback Change history Executive summary If … Read more