How to destroy a filesystem

posted Nov 9th 2008 4:00pm by Eliot Phillips
filed under: android hacks, g1 hacks, pcs hacks, security hacks

rmrf

The G1 ‘execute every command you type‘ bug naturally spawned ‘rm -rf /’ jokes. rm is the Linux command for deleting files. The -r and -f flags will cause it to remove files recursively and ignore confirmation. Executed as root it will annihilate the entire filesystem. Won’t it? [Jon Hohle] decided to test exactly how destructive the command was to *nix systems. How functional would the system be afterwards? He tested it side by side with the Windows equivalent, both ‘format c:’ and ‘del /F /S /Q’. He wanted to see what protections were available and what would be left working. Linux ended up completely broken while Windows, thanks to file locking, actually shutdown cleanly… and never came back. Some OSes, like Solaris, refuse to run the command ‘rm -rf /’ to prevent accidents.

Recent Posts



Reader Comments

Leave a Reply

hack a day serves up fresh hacks each day, every day from around the web and a special how-to hack each week.

send us your hacks






hacks

resources

rss newsfeeds

powered by wordpress

Most Commented On (30 days)

Recent Comments