Slashdot Mirror


Shootout: 'rm -Rf /' vs. 'Format C:'

skyshock21 writes "There's an article over at hohle.net about what actually happens when you type the commands Format C: in windows versus rm -Rf / in Linux. Very interesting results indeed. Myths are busted, and hilarity ensues."

36 of 513 comments (clear)

  1. ...vs Magnet vs Tossage by molywi · · Score: 4, Funny

    I prefer the magnet or throwing the disk out the window.

    1. Re:...vs Magnet vs Tossage by cayenne8 · · Score: 2, Funny
      " Not in the USA. Trash is considered 'abandonded property' and is up for grabs.

      Very true...I live in New Orleans. I think I mentioned it before, but, you put anything out that even LOOKS relatively useful (and some amazing non-useful)...and it will not be there by morning. Hehehe...one afternoon, while getting ready to move..decided it was time to get rid of some of the old playboys and such rather than move them. I put them all in a box, but, left the lid open. This was a good 40-50lbs easily...well, just went back inside packing readying for the move. Came out with another load of trash to put at the curb...the whole box was gone...hahaha. Was amazed at how fast it went and during the daytime.

      --
      Light travels faster than sound. This is why some people appear bright until you hear them speak.........
  2. Before they got slashdotted.. by pigeon · · Score: 4, Funny

    they apparently did a rm -rf / on their webserver..

  3. Re:rm -fr / by nounderscores · · Score: 1, Funny

    For a second I read that as

    rm .fr

    as in "remove france"

  4. you know by iamnotacrook · · Score: 5, Funny
    i read that whole article, and i couldnt find the hilarity.

    i'll go back to laughing at the election results. or was it crying, i cant remember now.

    1. Re:you know by Anonymous Coward · · Score: 1, Funny

      I removed my hard drive and windows wouldn't boot at all. So much for windows stability, Huh!

    2. Re:you know by Anonymous Coward · · Score: 1, Funny
      i'll go back to laughing at the election results. or was it crying, i cant remember now.

      Perhaps you had a stroke. Crying and laughing

  5. Re:rm -fr / by Zork+the+Almighty · · Score: 2, Funny

    You never know - he might do it. This time he has popular support.

    --

    In Soviet America the banks rob you!
  6. Try it with NFS... by skroz · · Score: 4, Funny

    I once saw an errant script run as a cron job (I DIDN'T WRITE IT, DAMN IT! WHY DON'T PEOPLE BELIEVE ME!!!) execute "rm -f *" in root AS root once. No big deal, right? What if someone accidentally (IT WASN'T ME!!!) created a file called "-r" in / two years prior to the errant rm? Hmm? Now what happens if you have nearly two terabytes of data mounted rw without root squashing via NFS on that workstation? Now what happens if that runs on a Saturday night and nobody notices until Monday morning?

    I'll tell you what happens. What happens is that the next several days are very, very, very long and very, very, very uncomfortable.

    --
    -- Minds are like parachutes... they work best when open.
    1. Re:Try it with NFS... by Anonymous Coward · · Score: 2, Funny

      I once saw an errant script run as a cron job (I DIDN'T WRITE IT, DAMN IT! WHY DON'T PEOPLE BELIEVE ME!!!) execute "rm -f *" in root AS root once.

      I once saw a script that had "rm -rf $(FOODIR)/*".

      No problem in that. Except that one adminstrator run it as a root and nobody had thought to define $FOODIR for root...

    2. Re:Try it with NFS... by Rostis · · Score: 2, Funny

      I've seen a similar problem with the solaris admintool. One employee created a user but accidently hit space before the username, realized the mistake and deleted the user again with the admintool. (And no, it wasn't me, I don't use that buggy admintool) :)

      The admintool quickly does
      rm -rf /home/ username

      After that, everyone just went home for the day.

  7. Re:rm -fr / by Jogar+the+Barbarian · · Score: 2, Funny

    He's got my vote!

    Now pass the freedom fries!

    --
    3. Profit!
    2. ???
    1. On Soviet Slashdot, a Beowulf cluster of alien Natalie Portman overlords welcomes YOU!
  8. rm -Rf / by Savage-Rabbit · · Score: 4, Funny
    I once watched somebody do that while logged in as root on a unix machine. The guy was a really fast typist with an ushakable faith in his ability, before I had a chance to stop him he had managed to type and commit the command:
    root@localhost# rm -rf / somedir/somesubdir
    instead of:
    root@localhost# rm -rf /somedir/somesubdir
    That inadvertent space made all the difference. Fortunately we had a very good backup system.
    --
    Only to idiots, are orders laws.
    -- Henning von Tresckow
    1. Re:rm -Rf / by Sentry21 · · Score: 2, Funny
      Seen in a makefile in comp sci class:
      clean:
      rm -rf *.o *~ /* Remove all temp files */
      Fortunately, the kids weren't running as root. They DID have to re-do their project afterwards though. Handy tip, don't use -r unless you REALLY need to. Accidents make it disastrous.

      --Dan
  9. Re:A more appropriate shootout by Mjlner · · Score: 3, Funny
    If you would've bothered to RTFM:
    "I know that "format c:" and "rm -Rf /" aren't equivalent, but they usually are interchangeable punchlines to jokes, which is why they were chosen."

    This comparison is mostly to check how well you can get a n00b to screw up his system, which is notoriously done with format and rm.

    --
    Lemon curry???
  10. I've seen that image before... by Shambhu · · Score: 2, Funny

    ... this one, I mean. And I'm convinced it is one of those Magic Eye things.

    --
    Rome wasn't bilked in a day.
  11. The most beautiful of all solutions by oakad · · Score: 2, Funny

    >su >dd if=/dev/zero of=/dev/hda Works every time for me!

  12. The medium tech solution by Anonymous Coward · · Score: 3, Funny

    Microwave the drive... works everytime. If the room is dark, you're in for watching some serious fireworks!

  13. I've seen it happen by cuteseal · · Score: 1, Funny
    I've actually seen it happen with my own eyes.

    We were in the middle of an overnight service migration and my co-worker, intending to delete a copy of the directory types "rm -rf /etc" instead of "rm -rf etc".

    We had to restore from backup, and boy was he red faced for weeks after...

  14. In the good old days by argent · · Score: 3, Funny

    Back in the '80s, my boss had one of the first PCs in the building with a hard disk. One day he asked me to copy some files off onto a floppy, so I put the floppy in the drive and typed "format", as I was used to doing...


    C:>FORMAT
    Insert floppy into drive C: and hit return.


    The rest is history. As was everything on the drive.

  15. Kerry and Bush systems by LINM · · Score: 3, Funny

    I tried some similar expressions recently:

    format c: /FS:KERRY
    rm -Bush *

    The results were very telling. Both candidates made about 5,000 prompts all on the order of "5 more years?:" and "The American people will pick the right man for 5 more years?:". As most of these prompts were gibberish, I responded in a random fashion.

    In the end, the files of the Bush system remained on the system, but still functioned poorly and continued to periodically core dump.

    What amazed me on the Kerry system was that the files actually wrote over themselves many times before all simultaneously deleting!

    All in all, the process took about 7 months and I can honestly say that I hope never to have to do that again. Further more, based on how both operate when active, I would like to see a completely new category of OS if I do have to go through this again.

    --

    Hunger is the best sauce.

  16. I hate the finnish keyboard layout by jahalme · · Score: 4, Funny
    Typing the tilde character on a finnish keyboard is just plain stupid. You have to first hold AltGr and press a key to the left to enter, underneath backspace, then release both keys and press space. Insanity!

    Ok, I've just finished installing Linux on a fresh hard drive and have spent a few hours editing stuff in /etc using my favourite editor joe. The editor creates backup files everytime it overwrites a file, naming them as the original filename with a tilde appended. I wanted to quickly remove all the backup files so I typed

    rm -f *~
    But curses, my caffeine-overloaded fingers were too quick to hit that spacebar and I ended up with
    rm -f * ~
    AARGH! There goes BOTH /etc AND root's home directory. Damn you whoever came up with the finnish keyboard layout!
  17. Re:openbsd rm by qray · · Score: 4, Funny

    overwrite it with all zeros to hide the shreading, then remove the file Wouldn't it be better to replace it with the original bits. That would remove all traces of shredding. Something pithy goes here

  18. Re:sudo password by Anonymous Coward · · Score: 2, Funny

    >You assume a roll which gives you extra priviliges.

    I assume a croissant which effectively makes me root.

  19. not as thorough as... by catdevnull · · Score: 3, Funny


    These methods are pretty good ways to kill a system. However, I found that a large electromagnetic field generated by an old bulk eraser produces similar results in just seconds! Man, was my cube mate pissed!

    I don't have screenshots, though. I think I'm sterile, too.

    --

    I might know what I'm talkin' about, but then again, this is Slashdot...
  20. Re:A more appropriate shootout by geoffspear · · Score: 4, Funny

    If you want someone to screw up his system, then "while (1)
    mkdir foo; cd foo
    end"
    is even more effective.

    --
    Don't blame me; I'm never given mod points.
  21. Re:Get a life by The+Angry+Mick · · Score: 2, Funny
    We all know the best way to screw a Windows XP SP2 user is to convince them to turn off the firewall .

    Some might argue that simply having Windows XP means the users have already screwed themselves.

    --

    I'm not tense. I'm just terribly, terribly, alert.

  22. A Fun Game! by Robmonster · · Score: 2, Funny

    We used to login as root and type 'rm -r' into the console WITHOUT pressing Enter.

    We then took turns at throwing stuff at the keyboard to see if we would just-so-happen to hit the Enter key.

    Luckily, none of us were very good shots...

    RM

    --
    I have no sig yet I must scream.
  23. Re:sudo password by djdavetrouble · · Score: 4, Funny

    Well I can't find any evidence that it does or does not void your warranty, on apple's own site or google, not even a mention of it. Also, I can't believe that enable root would prevent you from getting hardware replaced. It is a normal system function, and there are no warnings to that effect when you do enable the root user (WARNING ENABLING THE ROOT USER WILL VOID YOUR WARRANTY, that sort of thing). It just sounds preposterous, imagine:
    You: My hard drive is fritzed, the s.m.a.r.t. diagnostics indicate a hardware failure.
    Apple: Is root user enabled?
    You: Yes, I am an old skool unix geek that has to have a terminal with '#' open at all times when I am at my system, along with my case of mountain dew and tub of beef jerky.
    Apple: Sorry then, enabling root user voids your hardware warranty.
    You: But I have to test out this rm -Rf / thingy
    Apple: Not on our dime, you root abuser. Use sudo instead after you have purchased a new hard drive.

    My guess is this is a lie that someone perpetuated to get some n00b to keep from (unwisely) enabling r00t.

    --
    music lover since 1969
  24. Re:sudo password by djdavetrouble · · Score: 3, Funny

    Depends on char race and class. You should chose a human valkyrie for your role based access account, if you want high strength. If you come across Mjollinir, you can throw it and it comes back to you (with 25 strength or higher), plus lightning damage.

    Earlier in the game, Magicbane will serve you better (magic resistance, engraving, and curse resistance).

    --
    music lover since 1969
  25. Nothing hides evidence like a stew. by infonography · · Score: 2, Funny

    simmer your drive for 40 minutes on high heat till tender. Add taters, carrots, celery. spices. Remember to Floss now.

    --
    Sorry about the writing. Robot fingers, you know? Cliff Steele in DOOM PATROL #23
  26. Re:openbsd rm by Anonymous Coward · · Score: 1, Funny

    "Nobody wants to see your home-made porn that badly."

    Ye of little faith.

  27. Interesting error messages by Denis+Lemire · · Score: 3, Funny

    I once did a recursive rm -rf / as root on Slackware linux. After it completed I tried to log out and all I got was a message that said:

    "You don't exist, go away!"

    Very amusing.

    Anybody know which Linux package is responsable for this message?

    1. Re:Interesting error messages by evilviper · · Score: 2, Funny
      Anybody know which Linux package is responsable for this message?

      It doesn't exist. Go away.
      --
      Slashdot gets worse every day... Pipedot: News for nerds, without the corporate slant
  28. Did someone say shootout? by Anonymous Coward · · Score: 1, Funny

    I set a few USE flags, and my Gentoo can rm -rf / 10x faster than Red Hat. I'll prove it! Just give me a se

    *NO CARRIER*

  29. Re:openbsd rm by Smallpond · · Score: 2, Funny

    Close. That was dead stars, this is deskstars.