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
[–] 2 points 7 months ago

life hack: alsways make a new directory to extract something in. that way you dont have to rm a bunch of random files, and maybe sone dotfiles you'll never notice or know where they came from

  • source
  • parent