Settings

Theme

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

2 points by xhan0o 3 years ago · 2 comments · 1 min read

Reader

Is it just me who's always act paranoid hitting enter on sudo rm command.?

wruza 3 years ago

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.

zaghaghi 3 years ago

I always check pwd, think again, and add a space before rm.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection