Being a native California I have lived through many earthquakes. It is a bit different here in Calfiornia because most of building are built to survive earthquakes with little damage. But having said that there are a few tips that I want to pass on.
Running out of the building you are in is not neccesarily the best thing. During and immediately after an earthquak many people are injuried by glass and other materials falling from the building they are trying to exit.
The best place to be during an earthquake is under a strong table or counter. Be as far away from window as you can. An interior doorway is another more stable place to take shelter during a quake.
As soon as the quake is over exit the building or house and get everyone together. If your home is damaged you will want to turn off your gas and water at the main shut off to prevent fire or water damage.
I hope these tips help to you feel more safe.
Thanks for reading,