170

One of the most evil commands to completely screw a Linux terminal user.

alias cd='rm -rf'

Deletes the folder you want to cd in.

Comments
  • 36
    Who invited Satan to devrant?!
  • 2
    Is there a way to see what your alias' have set?
  • 4
    @spences10 Just type alias in your terminal.
  • 3
    @enitoni Hehe I managed to sneak past DevRant's email verification 3:)
  • 4
    Will go to a random university that teaches CS, find laptops that are left alone and do this.
  • 4
    oh shit 'cd /' is going to kill the os
  • 0
    Pure Evil!! 👿
  • 3
    Lol someone posted a similar rant recently. So.. sorry to burst your bubble but modern Linux distros, or rather the rm tool, makes you add an additional long flag to confirm that you're aware of your request. (Only when used on / ) someone did mention that macOS still accepted the raw rm -rf /.. not sure if that's still true on the latest version
  • 2
    ++ it's not Linux .. rm is part of GNU coreutils .. the flags sometimes vary by OS but the tools are usually the same. https://gnu.org/software/coreutils/...
  • 3
    @stable-penguin Absolutely true. And I was not aware of an interactive deletion for /, although I know the -i flag forces you to verify before deletion. I never tried 'rm -rf /' (who does?) but I earlier thought that this command cannot be executed successfully by a non superuser. Maybe running it as root might have done the trick. Plus, I should have replaced Linux with UNIX, my bad.
  • 0
    Cruelty!
  • 2
    @shauryachats not a problem and thank you for being a good sport. Such a great point! I've never tried it at / just locally to delete a folder.

    Maybe it'll be a wild and crazy Friday night: fire up virtual box and rm -rf / ! Jk that's lame hah! Cheers 😊
  • 0
Add Comment