DIGIT-ARC read-only archive · snapshot: July 23, 2026

What happens when "sudo rm -rf /" is excuted

16 posts · originally from https://geek.digit.in/community/threads/what-happens-when-sudo-rm-rf-is-excuted.80629/

gary4gar
gary4gar Original post #1
Feb 19, 2008 at 8:02 PM
This from start all linux gurus here, are warning newbies that don't use sudo rm -rf / command, it very dangerous .

Lets see that this Sh!tty command do:D

*www.youtube.com/watch?v=wWOjmvWPRvQ
H
Hitboxx #2
Feb 19, 2008 at 8:42 PM
It's not a shitty command at all., it lets you play God :D
ring_wraith
Feb 19, 2008 at 8:50 PM
^^ Ok, now you are being a fanboy.

Having a Self Destruct command for an OS is not a good idea!
H
Hitboxx #5
Feb 19, 2008 at 8:59 PM
^^ Ok, now you are being a fanboy.

Having a Self Destruct command for an OS is not a good idea!
Nein, far from it, whenever I'm installing new distro's, I watch this command in action with a laugh and a coffee instead of doing it the conventional way. I enjoy it.
gary4gar
Feb 19, 2008 at 8:59 PM
does this classify as a bug?
ring_wraith
Feb 19, 2008 at 9:00 PM
Before I set off a flame war, let me say that there may be some extremely rare instances in which this command might be useful, [like if you are a hacker and the FBI is at your door] but this is still not a good idea as a newbie could be misguided into running it, leading to severe data loss.
H
Hitboxx #8
Feb 19, 2008 at 9:04 PM
Yes it's a strict NO NO for a newbie until he/she is no more a newbie. But data loss can also be prevented, assuming by data you mean contents on a separate partition, in which case, just unmount that partition before issuing the command.
Faun
Faun #9
Feb 19, 2008 at 9:05 PM
Before I set off a flame war, let me say that there may be some extremely rare instances in which this command might be useful, [like if you are a hacker and the FBI is at your door] but this is still not a good idea as a newbie could be misguided into running it, leading to severe data loss.
with great power comes great responsibility (though i hate being responsible :D)

does this classify as a bug?
nope its a bliss
subratabera
Feb 19, 2008 at 10:18 PM
But this command just doing what's it is designed for.

Is'nt it...?

But I think it should warn user first of the consequences.
infra_red_dude
Feb 19, 2008 at 11:16 PM
^^^ +1, the user should be given not be allowed to use the -f switch when the target is / (root) or any other mounted partition (home/other FS etc.) without confirmation (Though it is completely against what -f is intended but for mounted partitions there should at least be one prompt).
Faun
Faun #12
Feb 19, 2008 at 11:22 PM
isnt there -i flag ?
Manshahia
Manshahia #14
Mar 4, 2008 at 12:22 AM
can anyone explain in plain english wat this command does?
Faun
Faun #16
Mar 4, 2008 at 1:25 AM
give u a break from linux