Re:How do I prevent accidental rm -rf /*?
by LeafStorm on Saturday December 03, 2011 @08:20PM
(#3309506)
Because of the inherent dangers in -f, I rarely use it...with one major exception. Whenever I am trying to delete a directory with a git repository in it, the fact that a lot of the things in the .git directory are write-protected means that I have to either punch Y for what is likely dozens of files, or use -f (or some other incredibly ridiculous and equally dangerous thing like "yes | rm").
[ Parent
| on HN ]