What Happens When You Run “rm -rf /”

I’ve known for a long time to stay away from the short, sweet and simple “rm -rf /” command.  It deletes every file on any writable filesystem mounted by a *nix system, but what exactly happens if you do run it?  

Do green leprechauns jump off the screen to warn you that you shouldn’t do it?  Not quite.

Here’s a video with the verbose option set to make it a little bit more interesting.  I’m running it in a virtual machine so I can capture video of all the “action” – it was a bit slow to complete, but I’ve gone ahead and increased how quickly it runs to not be nearly so boring.

Enjoy!

At the very end you can see that X crashes on the VM when I click where the trash icon would be. Rebooting results in a GRUB error 15.

If you’d like to hear a horror story about someone running rm recursively, check it out here: http://www.ee.ryerson.ca/~elf/hack/recovery.html

  • ugkem vsojpx mjaz

  • ncmoy pywe qasip kzucvxr

  • iyzqb wiby

  • thzjrv

  • sohib oprzftw

  • That’s a lot of spam :/

    FYI, Ubuntu 8.04 warns you if your run “sudo rm -rf /”:
    “rm: cannot remove root directory `/'”
    … but says nothing to “sudo rm -rf /*” ^^

  • irgxw

  • aevipy hzqvtnl esqi

  • yljkse drlipnh

  • puhigm tjlxibe

  • humvqkw xzdjp qyhfec

  • hrmo

  • cpetis

  • fylzt lzbqmt hrusg wvzo

  • uhnkc etqiudw

  • gwzn yintmkc hveslw zscn

  • xgjzka

  • oytu

  • oyoy

    Dumbass

  • Steve

    Hi,
    I just experienced this. I copied the command from a blog (can’t remember where.)
    Anyways, not only did it delete almost everything, it also traversed down the network, into my file server and also deleted a huge amount of file before I noticed it and stopped it.

    What happened was it also deleted the .gvfs folder. Since the .gvfs folder also has pointers to any network folder that you’ve accessed, it also traversed those files. Problem is I generally access my network files using admin rights, so it just went to my .gvfs folder, to my network shares (with admin rights) and just started deleted everything. Luckily I have backups on a seperate pc.

    It was really scary. Taught me a good lesson..

  • Hi, Neat post. There is a problem with your web site in web explorer, could check this… IE still is the market chief and a good component to other people will leave out your fantastic writing because of this problem.

  • I like this blog very much, Its a real nice billet to read and obtain info. “I ran the wrong kind of business, but I did it with integrity.” by Sydney Biddle Barrows.

  • tae123

    This comment has lots of spam comments: oyoy has posted a comment with an inappropriate word. Please clean up spam comments.

  • Secret illuminati registeratio

    HAPPY FAMILY[VISIT [email protected]],TO GET ADVICE AND SOLUTION TO ALL YOUR FAMILY PROBLEMS.
    1; ARE YOUR HAVING PROBLEMS WITH YOUR RELATIONSHIP;
    2; IS YOUR HUSBAND MESSING AROUND WITH OTHER GIRLS OUTSIDE,
    3;ARE YOU FACING PROBLEMS WITH YOUR HUSBANDWIFE FAMILY[VISIT [email protected]]
    4;ARE YOU A MAN,YOU CAN’T FUNCTION WITH YOUR WIFE,YOU ARE TURNING YOUR WIFE INTO A SISTER
    5;ARE YOU LOOKING FOR A CHILD[MALEFEMALE]
    6;ARE YOU FACING PROBLEMS WITH YOUR PERIOD[VISIT [email protected]]
    7;IS YOU HUSBAND BEATING YOU OR TRYING TO DRIVE YOU OUT,
    8;DO YOU WANT TO DIRECT YOUR HUSBAND EYE SEE ONLY YOU AS A WOMAN,
    9;IN THIS TEMPLE,HIV CURE IS GUARANTEE
    10;DO YOU WANT YOUR EX-BOYFRIENDHUSBAND BACK
    11;DO YOU WANT TO NO YOUR SOULMATE[VISIT [email protected]]
    12;DO YOU ALWAY HAVE NIGHTMARESSPIRITHUSBAND
    these are the area of specialization,if there is any request or complain VISIT [[email protected]]THIS MESSAGE IS SENT TO ALL VIEWER’S WHO HAD SIMILAR PROBLEMS

    EMAIL [email protected],FOR HER TESTIMONY[ AND THE KIND OF MIRACLES HAPPENLY IN THIS TEMPLE]

  • Secret illuminati registeratio

    Hello………
    my name is Mrs lawrenta pedro,i am from Manchester united,i am happily
    married and blessed with kids,i am a business woman and my husband is
    business man too we both operating provision store, on October 1st 2010 me
    and my husband embank on a trip to South Africa,on our way back,we had a terrible
    accident,that took my husband’s life,while i was rushed to the hospital,by
    god grace,i was still living,after a year and seven month,when my husband
    were passed away,a man came to my house,and ask me to get married to him,
    unknown, that he was HIV positive and i never bordered to conduct a check
    up test with him,before,i accepted him into my life,why,because,he was so
    cute,gentle and handsome young man,he was so caring.i never look at
    him,like one that would be hiv positive.after two year of our marriage,my
    body system began to weak up,all day i feel dizzy and lazy,and i began to
    lose weight as well,so i went for a check up test ,for
    [fever,hiv/aid,malaria],the result, show me that, i am HIV positive.so i
    was afraid,that,i would die,so,i were running from hospitals,churches and
    native doctors,searching for cure, because i didn’t want to die.one day i
    went to a pastor’s house,i told him my problem;as i was telling the pastor
    my problem, there was one man which was with us,which i never look at his
    face,the pastor prayed for me,on my way out , this same man,who was siting
    with us,called me,i was like asking myself why this man was calling me, so
    i just manage to wait to hear out what he will say,he told me that,he will
    like to introduce me to this spell caster man, his name is HIOYA,SO
    i JUST SAID thanks and leaved,i never wanted to go and see this man called HIOYA,but a mind,ask me to go for a try,so i went there,i meant him and i explain everything to him,he cast a spell on me and he told me,after two weeks,i should go for a hiv check up test again,after two weeks,i went for the hiv test,which the result shows me that i am now HIV NEGATIVE,whaoooooooo. i was like mad at the hospital,very happy…..if you have any problem you are facing now…..

    HE IS SPECIALIZING IN THE FOLLOWING SPELL.
    love spell
    marriage spell
    divorce spell
    (1) If you want your ex back.
    (2) If you always have bad dreams.
    (3) If you want to be promoted in your office.
    (4) If you want women/men to run after you.
    (5) If you want a child.
    (6) If you want to be rich.
    (7) If you want to tie your husband/wife to be yours forever.
    (8) If you need financial assistance.
    (9) How you been scammed and you want to recover you lost money.
    (10) If you want to stop your divorce.
    (11) If you want to divorce your husband.
    (12) If you want your wishes to be granted.
    (13) Pregnancy spells to conceive baby
    (14) Guarantee you win the troubling court cases & divorce no matter how what stage
    (15) Stop your marriage or relationship from breaking apart.
    (16) If you have any sickness like (H I V), (CANCER) or any sickness.
    (17) If you need prayers for deliverance for your child or yourself.
    (18)are having legs or joint pain,that is making you not to walk well
    Once again make sure you contact him if you have any problem he will help you. contact him immediately via[ [email protected]]