• Gakomi@lemmy.world
    link
    fedilink
    arrow-up
    33
    arrow-down
    1
    ·
    4 months ago

    Who the fuck does that to “live life on the edge”? And what kind of mental illnesses do you have ?

    • ashaman2007@lemm.ee
      link
      fedilink
      arrow-up
      2
      ·
      4 months ago

      Having BTRFS snapshots set up for root: 😀 Elbow on the keyboard issues this command before the sudo timeout: sudo rm -rf ./testdir/cd $HOME RIP home directory 😭 and still figuring out the best way to do snapshots of home without using timeline snapshots and using a ton of space…

  • heavyboots@lemmy.ml
    link
    fedilink
    English
    arrow-up
    9
    arrow-down
    1
    ·
    edit-2
    4 months ago

    OS 9 on macOS did me dirty when I tried to delete it for the final time. The OS X operating system folder is named System. And the OS 9 folder is named System Folder.

    So I typed rm -rf System and then tried to type the \ character so I could put in the space between the two words. Which is right above the Return key. Guess what I hit instead of \…

    I hit control-C almost immediately but it still got through C inside the System folder. Apparently nothing absolutely vital lives in the A-C folders, btw. I was able to even reboot and it all came up normally. Only thing was I couldn’t run any Carbon apps (which was kind of crucial at the time) so I still had to do a reinstall of the OS.

      • Krafty Kactus@sopuli.xyz
        link
        fedilink
        English
        arrow-up
        2
        ·
        4 months ago

        Usually, /home/ isn’t what gets deleted first so unless your computer can delete everything within a few seconds, ctrl-c and would work. Then you can survey the damage and reinstall the OS if necessary.

  • chraebsli@programming.dev
    cake
    link
    fedilink
    arrow-up
    4
    ·
    4 months ago

    I like to tell IT newbies in their first year apprentice that sudo rm -fr / removes the french language from the root, since in Swiss Windows, french comes as second keyboard layout and sometimes you accidentally switch and nobody likes it.

    Somethimes their first linux is a VM, lucky them, but not always:)

  • Gakomi@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    4 months ago

    I think this is actually more damaging especially if you make a cronjob with it: sudo rm -rf “$(sudo find / -type f -print0 | shuf -n1 -z)”

    • lud@lemm.ee
      link
      fedilink
      arrow-up
      2
      ·
      4 months ago

      Yeah, why not. If you don’t have anything important on the VM you can do whatever the fuck you want.