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.

  • BCsven@lemmy.ca
    link
    fedilink
    arrow-up
    2
    ·
    12 hours ago

    Thankfully I don’t hit the space bar randomly (yet) but btrfs snapshotting has saved the day for other mishaps

    • BillyClark@piefed.social
      link
      fedilink
      English
      arrow-up
      2
      ·
      11 hours ago

      I think the bigger point is that if you type the entire path, you are obviously typing more characters, which gives more opportunities for typos, whatever they may be.

      It’s far safer to find ways to type less. Less typing, fewer typos. As long as you can do it safely.

      • BCsven@lemmy.ca
        link
        fedilink
        arrow-up
        1
        ·
        4 hours ago

        I don’t think that applies when you intend to type something but accidental type enter after your first slash / :)