Hacker News new | ask | show | jobs
by cgriswald 532 days ago
I have no doubt this would stop some instances of (say) accidentally rebooting a production server.

But as an idiot, I’m here to tell you it isn’t idiot proof. In a moment of suboptimal attention, I could easily ask myself “What host am I on?” rather than the more appropriate question “What host am I trying to shutdown?”

In my case it may be quite a bit worse because I have hostnames in PS1 specifically to avoid running any command on the wrong host. With the hostname right in front of me I could easily accidentally habitualize just typing the hostname I see.

Over time, I imagine this would befome more likely rather than less, so although I think it probably helps, I am sympathetic to GP’s view of futility.

1 comments

Maybe have it prompt: what host do you NOT want to shut down?

/s