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.


Oof. I always type the whole path just because I have made this mistake before.
That doesn’t protect you from typos.
rm -rv /home/schmuck /etc“Whoops, I accidentally added a space.”
I have three ways around this:
ls ~/etc… <press up arrow, replacelswithrm -rv>ls ~/etc…rm -rv !$As a noob, those little wrappers are great.