As Diane said, "Get under the sturdiest item you can get to and don’t run outside if you don’t want a wall to fall on you as you leave. I keep flip flops at my bedside so I can walk across broken glass, etc.
I spent my entire time at Weyerhaeuser working in the Technology Center in Federal Way, WA. This was a building with labs that included hazardous materials. No matter where we worked, all of us did regular training on what to do in the case of an earthquake. One of the aspects of it was getting under our desks when the shaking started. When the relatively small Nisqually earthquake happened, that training was so ingrained that most of us were under our desks without even thinking about it. The advice to get under something sturdy if you possibly can is very important.
The next step of our training was to exit the building after the shaking stops and meet in a designated area where we'd stay until the building was declared safe to re-enter. The travel equivalent would be paying attention to possible escape routes from where you're staying.
In WA we were advised to have a "go" bag in case of earthquakes or other evidence that Mother Nature always wins. The travel equivalent would be a small bag with absolute essentials ready to grab when you have to vacate where you're staying. Those might vary slightly for each of us, but passport, emergency information, essential plastic, some cash, phone, meds and keys (for the room, my car and my house) would be at the top of my list in an iffy area. The 1st 4 being flat would already be in my money belt.
I don’t go barefoot anywhere, so I always have slip on shoes next to the bed. I also wear capri or long pajamas and have my raincoat long or short, readily accessible to slip on over them.
Like any other planning, my husband rolls his eyes, but I think of it as insurance protection for avoidable hassles, especially because I've traveled solo since 2016.