Very helpful. I was always tempted to
sudo rm -rf /, now I can finally do it without losing my home directory. (I’m just kidding)
If you want to protect a directory from a careless
rm -rf *,
touching a file named
-iinside it will force
rmto ask for confirmation :
From Command Line Fu, via HN.