50

I almost did rm -rf / as root on my computer, but Ubuntu actually stopped me from doing it, even as root, saying it was too dangerous. Props, Ubuntu. You saved my hard drive.

Comments
  • 3
    Yup, ubuntu checks this type of thinga
  • 4
    @linuxer4fun windoes doesn't when u delete system32
  • 4
    Actually it's coreutils (Linux version) that has saved you. The "rm" utility refuses to delete root without a special argument.

    And I also heard that mac's coreutils (more like BSD version) does not have such protection? Correct me if I'm wrong.
  • 3
    Really, how often do you people need to delete System32, or do rm -rf /? Is that like a daily thing? I have never had to do that in 20 years?!
  • 0
    @hexchain I THINK that the Mac has a special layer of protection that prevents you from doing things like access files outside of your user area (even as root) without changing some default security setting, although I may be wrong...
  • 6
    Were you playing the Unix Roulette?
  • 2
    Why do people even try that? How did you even get close to do it? Wtf?
  • 2
    Protip: Debian has a "saferm" package, that prevents you from deleting important directories
  • 1
    @Mitch377 and the complain about Linux because you did something stupid and it didn't stop you? It can't win either way can it? :P
Add Comment