Follow-up from “Dumbest Thing you have done distro-hopping?”.

Here’s mine - the laptop from which I’m typing right now has a broken touchpad that keeps jumping and clicking randomly, and does not work. Well, I can’t afford to fix it, but at the moment, I was so pissed off I punched the touchpad really hard, and the machine panicked with all the lights blinking. A few more revival abuses, and the machine was back to life, but since I was running a nixos-rebuild switch --upgrade in the background, I blew off my boot partition. I think I just broke the unbreakable distro.

  • wviana@lemmy.eco.br
    link
    fedilink
    arrow-up
    29
    ·
    8 months ago

    This one is from a coworker. He noticed there was a file named ~ inside his home. Decided to delete it. So rm -rf ~.

    • ahal@lemmy.ca
      link
      fedilink
      arrow-up
      11
      ·
      8 months ago

      Am I your coworker? In my case the dir was created by a poorly written Python script. I just banged out the rm -rf from muscle memory without pause.

    • KISSmyOS@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      8 months ago

      Creating a file named ~ used to be a prank to teach others not to leave their pc unattended and logged in.

    • dan@upvote.au
      link
      fedilink
      arrow-up
      2
      ·
      8 months ago

      I did this in my development environment at work! Luckily they take backups every 15 minutes.

      • robzombie91@lemmy.ml
        link
        fedilink
        arrow-up
        7
        ·
        edit-2
        8 months ago

        Your essentially telling your terminal to delete everything starting at your home directory, folder structure be damned

      • wviana@lemmy.eco.br
        link
        fedilink
        arrow-up
        1
        ·
        8 months ago

        ~ is a “aliás” to your user home directory. If you are anywhere and want to copy something into your documents folder you can do cp file.txt ~/Documents instead of cp file.txt /home/username/Documents

        So by typing rm ~ it actually deleted the /home/username directory instead of the ~ file in it.

        I think rm '~' does delete the file.