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.

you are viewing a single comment's thread
view the rest of the comments
[–] 10 points 7 months 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.

  • source