3 ms·
Protecting a directory from being accidentally erased by rm -rf *
- dougb 15y agoI guess the inverse of this is cd <dir>; touch ./-rf
- ggchappell 15y ago> 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.