While shaking, which is usually over within one or two minutes, stay under a large table until the quake has stopped.  If there's nowhere to hide yourself, protect your head with pillows or blankets.
{}