You shake something when you move it vigorously up and down or from side to side. The dog in the photo is shaking water out of its coat. People shake drinks like milk to make them frothy. Shaking can be used to communciate too. People shake their heads from side to side to mean "no", and two people will shake hands as a greeting.