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.

  • BeardedGingerWonder@feddit.uk
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 days ago

    If you use sudo for each privileged command you wouldn’t typically use sudo to remove something in your home directory, so the command would fail. At which point you’d check why the command failed.