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
[–] 8 points 7 months ago (6 children)

Hey that's a pretty good idea. I'm stealing that.

  • source
  • parent
  • hideshow 6 child comments
  • [–] 5 points 7 months ago (5 children)

    After being bitten by rm a few times, the impulse rises to alias the rm command so that it does an β€œrm -i” or, better yet, to replace the rm command with a program that moves the files to be deleted to a special hidden directory, such as ~/.deleted. These tricks lull innocent users into a false sense of security.

  • source
  • parent
  • hideshow 5 child comments
  • [–] 2 points 7 months ago (4 children)

    I've read this somewhere too! Where are you quoting it from if I may ask?

    But yes I also agree πŸ’―%. rm should always be treated with respect and care by default rather than "customizing the danger away."

  • source
  • parent
  • hideshow 4 child comments
  • [–] 2 points 7 months ago* (last edited 7 months ago) (3 children)

    Quoting from Linux Hater's Handbook, lovely read

    EDIT: UNIX Haters, not Linux hater, my bad

  • source
  • parent
  • hideshow 3 child comments