This week at Super User, MaxMackie asked “How far will you get with a ‘rm -rf /'” ? Within minutes of the post, it had not only my attention, but others as well. It had 39 upvotes just eight short hours later, and answers and thoughts poured in.
I’ve often wondered how far the system will actually get if you run rm -rf /
. I doubt the OS would be able to erase itself (?)
We’ve all heard the stories – and please, don’t try this at home! rm -rf
has caused a LOT of problems with accidental usage in the past. It is a linux/unix command which erases all files recursively, and won’t stop to ask if you’re sure. Adding the extra / has it start at the root directory – meaning you’re erasing the whole system! But if we did run this on the entire system, how far would the trail of destruction go? I took it upon myself to find out. I fired up VirtualBox, and installed a new copy of Fedora 15 (XFCE). Within minutes I had a fresh install all set and ready to destroy.
Filed under Operating Systems, Question of the Week