# Safe-rm: prevent accidental rm -rf /\* with a one-line install

**URL:** <https://forum.hestiacp.com/t/safe-rm-prevent-accidental-rm-rf-with-a-one-line-install/22284>\
**Category:** Web\
**Created:** [October 12, 2026, 12:02pm UTC](https://forum.hestiacp.com/t/safe-rm-prevent-accidental-rm-rf-with-a-one-line-install/22284 "2026-10-12T12:02:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yunli](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/yunli/32/9695_2.png) [@yunli](https://forum.hestiacp.com/u/yunli)\
**Post date:** [October 12, 2026, 12:02pm UTC](https://forum.hestiacp.com/t/safe-rm-prevent-accidental-rm-rf-with-a-one-line-install/22284/1 "2026-10-12T12:02:31Z")

</div>

I’ve put together a polished version of safe-rm, a tool that helps prevent accidental deletion when running something like `rm -rf /*` in the root directory. If you’re interested, you can try installing it with:

```
curl -fsSL https://raw.githubusercontent.com/hestiacn/safe-rm/master/install.sh | sudo sh

```

It works better than the safe-rm that ships with most default distributions.
