Ask HN: How many time you proofread 'sudo rm' before hitting enter? Posted by xhan0o on Wednesday July 20, 2022 @06:37PM from the ask-hn dept. Is it just me who's always act paranoid hitting enter on sudo rm command.? ( 2 comments | 2 points | on HN )
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.