Well earthquake is a really dangerous natural calamity and moreover...people have less knowledge that how to counter handy points are:
1.excavate the prone area asap
2.when have less time, get under a table.
3.don't stand near corners.
4.listen to latest news from TV, radios and more.
5.gather necessary commodities for later use as instant food. ample water
hope that answers you query.