Letβs talk about the most dangerous, powerful, and perhaps even most exciting command line command of them all: rm.
rm is shorthand for ...
For further actions, you may consider blocking this person and/or reporting abuse
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 ofmv
, 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.