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.

  • rushmonke@ttrpg.network
    link
    fedilink
    arrow-up
    8
    ·
    14 hours ago

    I fucking hate using rm for these very reasons.

    There’s another program called “trash-cli” that gives you a trash command instead of going straight to deletion.

    I’m not sure why more distros don’t include it by default, or why more tutorials don’t mention it.