Live data from Hacker News

Ask HN: How many time you proofread 'sudo rm' before hitting enter?

news.ycombinator.com

1–3 of 3 posts

Re: Ask HN: How many time you proofread 'sudo rm' before hitting enter?

#3
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.