Protecting a directory from being accidentally erased by rm -rf *
commandlinefu.com
commandlinefu.com
cd <dir>; touch ./-rf
Ha! That is evil!
But I can counter it. Assuming we're using Bash:
$ alias rm="rm --"
Your move. ;-)
P.S. OTOH, the alias above also defeats the "touch ./-i" idea.