-i
If you want to protect a directory from a careless rm -rf *, touching a file named -i inside it will force rm to ask for confirmation :
touch ~/important-directory/-i
From Command Line Fu, via HN.
You can follow along on Twitter or via the feed. Don't hesitate to get in touch. Sponsor the site.
If you want to protect a directory from a careless rm -rf *, touching a file named -i inside it will force rm to ask for confirmation :
touch ~/important-directory/-i
From Command Line Fu, via HN.