I accidentally untarred archive intended to be extracted in root directory, which among others included some files for /etc directory.
I went on to rm -rv ~/etc, but I quickly typed rm -rv /etc instead, and hit enter, while using a root account.

  • I am still triple checking when I see /dev/sda as a target drive in such utilities. I use NVMe, so nowadays that’s probably a flash drive for me, but it still gives me adrenaline when I notice it.

    • mexicancartel@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      1
      ·
      14 hours ago

      I usually start typing with # before the command, so that even if i accidently hit enter, it won’t run. After verifying the command enough times, i removes the # and run the command(take command from history if i hit enter)