News for hackers. Stuff that matters.
Re:Ask HN: How many time you proofread 'sudo rm' before hitt... by wruza on Wednesday July 20, 2022 @08:05PM (#32174126)
Regardless of sudo.

Without -f: zero, because my bashrc always has alias rm="rm -i". Same for mv, ln, cp, they are destructive as well.

With -f: I always check cwd, hostname (both part of a prompt) and the entire command. First dry run with ls or echo instead of rm in some cases.

Re:Ask HN: How many time you proofread 'sudo rm' before hitt... by zaghaghi on Wednesday July 20, 2022 @06:50PM (#32173443)
I always check pwd, think again, and add a space before rm.