The other day at work I was doing something and accidentally made a folder named tilde.
ls ~ bin lib spec
Oops, well I guess I should remove that.
$ rm -r ~ rm: remove write-protected regular file .ssh/config?
Wait… what?! Oh crap, did that just delete my home directory?
$ ls ~ total 0 drwxr-xr-x 17 user group 544 Apr 18 11:45 . drwxr-xr-x 27 user group 864 Apr 18 10:18 ..
Lucky I have rdiff-backup run weekly. I changed that to daily.
Note to self, run
rm -r ./~ next time.
Man what a day.