At the end of a long day, after writing a script to go through some log files, I was finally done and needed to rearrange a bit of mess of files I had made before heading home. That's when I typo'd rm instead of mv, one of those things your fingers type with you realizing it. I was tired, and never felt more embarrassed at work, because one of my coworkers was watching as I did this.
At least writing the script was easier the second time.
Eeeeek! I'm glad you lived to share the story though! 😁
I have a /dev folder where I just have all my projects in their own folder. I wanted to delete one of them, so I used rm and somehow deleted everything in my /dev folder... luckily I use git for most of my projects. But I still lost a lot and am now much more cautious with rm.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.