Replying to @nixCraft@mastodon.social

@nixCraft
you're tired and type
rm -rf /temp

but accidentality hit Enter after /

They changed rm

The --preserve-root flag is a safeguard built into modern versions of the rm command to prevent the deletion of the root directory (/). By default, this option is enabled.
Double-check and explicitly set it for added safety.

When --preserve-root is enabled, rm -rf / is blocked

rm: it is dangerous to operate recursively on ‘/’
rm: use — no-preserve-root to override this failsafe