How do you know when an earthquake has passed?

you would be able to feel the vibration of it on the gound...or even on the walls.....