We’ve all done it – run the wrong command on the wrong host. Sometimes it’s just an “oops”… sometimes it’s a full blown outage. Avoiding these mistakes 100% of the time is hard, but making it harder to make them is relatively simple.
I wrote a post over at Rally’s Engineering blog about this so you can read more about it there, but until then just know that you should be doing whatever you can to make it clear what environment you are working in. Prompt colors, background colors, motd messages, etc.
Simple things to avoid simple mistakes.