DEV Community

Discussion on: What was the worst bug you've ever written?

Collapse
 
foresthoffman profile image
Forest Hoffman

There were a few that occurred in development, so no production environments were affected (that I can remember). However, I did once mistype a sudo rm -rf command...

I intended to type ./ for the current directory, but failed to enter the period. So, it was after I hit enter that I realized I had run it with a / in front of everything. I had several backups, so I only lost a bit of work.

I still gave myself a minor heart attack.

Collapse
 
hrmny profile image
Leah

That's why you just write . so you can't accidentally delete everything 👀