What Happens When You Do “sudo rm -rf /”?
Results 1 to 6 of 6

Thread: What Happens When You Do “sudo rm -rf /”?

Hybrid View

  1. #1
    Junior Member
    Join Date
    Mar 2002
    Posts
    23

    What Happens When You Do “sudo rm -rf /”?

    Well, now you know

    http://www.linuxhaxor.net/2007/12/27...do-sudo-rm-rf/

    Seriously don't try this at home. Obviously in this video sudo was used because this was a debian based (most likely ubuntu?) system; that discourages login as root. If you are using any other kind of linux system and logged in as root, you won't be even prompt for a password before everything is gone.... gone... just gone...

    I always wanted to try this. Maybe I will try this on a virtual machine and post some screen shots.

  2. #2
    Senior Member isildur's Avatar
    Join Date
    Feb 2003
    Posts
    166
    That is why some suggest that you alias rm -i for rm in your shell startup scripts.
    Only trust Pipe-smoking Penguins.

  3. #3
    AO BOFH: Luser Abuser BModeratorFH gore's Avatar
    Join Date
    Oct 2002
    Location
    Michigan
    Posts
    7,177
    I've done this and the deltree one (where regardless there isn't a password) just because the machine pissed me off. I have working versions of my configuration files and complete back ups in two locations and multiple CDs, DVDs, and USB drives containing back ups for everything so really me running this does nothing more than give me something to do for 30 minutes while I'm reinstalling the OS and grabbing the files off my FTP server or other places.
    Kill the lights, let the candles burn behind the pumpkins’ mischievous grins, and let the skeletons dance. For one thing is certain, The Misfits have returned and once again everyday is Halloween.The Misfits FreeBSD
    Cannibal Holocaust
    SuSE Linux
    Slackware Linux

  4. #4
    Senior Member wolfman1984's Avatar
    Join Date
    Aug 2007
    Location
    fangtastic.org
    Posts
    191
    That's not what happens when you run "rm -rf /" as root.

    Here, let me try it now....

    .....oh noes....

    *The Wolfman has been disconnected from Anti-Online*
    I AM... THE WOLFMAN!!
    The Wolfman's Homepage: http://www.fangtastic.org
    Do you dig the Wolfman?? Sign his Ghoulbook or listen to him Howl

  5. #5
    Just Another Geek
    Join Date
    Jul 2002
    Location
    Rotterdam, Netherlands
    Posts
    3,403
    Tried to "clear" my boot sector once.. Made a slight mistake.. Cleared way to much.... including the partitiontable....

    System still ran, no problem.. Until you reboot....

    dd if=/dev/zero of=/dev/ad0 bs=1024 count=10
    Oliver's Law:
    Experience is something you don't get until just after you need it.

  6. #6
    AO übergeek phishphreek's Avatar
    Join Date
    Jan 2002
    Posts
    4,324
    I've done that before.... kinda funny. I did it in a vmware session and had the session revert to a snapshot I had taken right before I did it. vmware is great for things like that. Kind of one of those instances where you're told not to press the red button but you just have to!
    Quitmzilla is a firefox extension that gives you stats on how long you have quit smoking, how much money you\'ve saved, how much you haven\'t smoked and recent milestones. Very helpful for people who quit smoking and used to smoke at their computers... Helps out with the urges.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

 Security News

     Patches

       Security Trends

         How-To

           Buying Guides