I usually start to type rm -r /blah/blah
, then realise what I'm doing and put a 'z' at the start, so it reads zrm -r ...
, so even if I accidental hit enter, no harm will befall me. Hopefully.
Of course, the other day I ran an rsync with the --dryrun flag. Those paying attention will notice that it really should have been --dry-run. Fortunately it gave me a syntax error instead of running.