We all make mistakes, do we?

It has come to my attention that I have made a grave mistake not too long ago. Even the best of us who work with Linux for a long time can do something with somewhat long-term consequences. Here’s what I did and how you can(maybe) avoid it.

That dreaded Linux command

One day I was doing a little house cleaning with some files lingering on the server. I’m sure many of you know where this is going. My thought process wasn’t very good that day either. Apparently I ran this command:

sudo rm -rf /

While the rm -rf portion may seem like a harmless command, the / changes everything we know about the universe. The / refers to the root directory of our file system. Yes, with just one mistake can cause you to lose everything in your system.

The good news is there are backups that are made on a regular basis. This allows for a quick recovery within 15 mins or less…(give or take, depending on the backup method).

Backup your servers folks!