DEV Community

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

Collapse
 
pgoodjohn profile image
Pietro Bongiovanni

I once ran rm -rf / in a virtual machine just for fun to see what it would happen.

The VM had some shared disks with my actual OS and it started deleting everything that I had on my desktop and some other important folders.

I was long due for a backup so I ended up losing a crap ton of data, but now I will never forget to check for shared disks when i'm working in a VM.