If you shake hands with someone, you take their right hand in your own for a few moments, often moving it up and down slightly, when you are saying hello or goodbye to them, congratulating them, or agreeing on something. You can also say that two people shake hands.
He shook hands with his admirers as he made his way to the front. [+ with]
We shook hands and parted on good terms.