3 ms·
I'll probably get shit on for admitting it, but I generally keep rm aliased to `rm -rf`. Recursive, force. It forces me to be careful and deliberate. There's n
by nucleardog 9y ago
I'll probably get shit on for admitting it, but I generally keep rm aliased to `rm -rf`. Recursive, force.
It forces me to be careful and deliberate. There's never a safe option or a backstop. I treat rm like a gun - always assume it's loaded and going to murder whatever I point it at without hesitation. If I'm not 100% sure about what I'm about to delete or how a wildcard will expand, then I echo it first.
I messed up once, about 15 years ago now. Lost a few personal files. Haven't screwed up since.