3 ms·
rm --preserve-root isn't a bad thing to have either. That way, even if you do screw up, you won't be able to run rm against '/', even with '-f'. It's one of t
by falcolas 12y ago
rm --preserve-root
isn't a bad thing to have either. That way, even if you do screw up, you won't be able to run rm against '/', even with '-f'.
It's one of the top aliases in my .bash_aliases file.
- colanderman 12y agoAgreed. Thankfully this is the default on many systems (I'm guessing recent coreutils). Unfortunately dumb lines like "rm -rf $HOME/$STEAMDIR" still get through unscathed.
- philh 12y agoI think that rm --preserve-root -rf /* doesn't save you.
- colanderman 12y agoYou are quite correct.