The correct phrase is "to know which side his bread is buttered"
often said as "he knows where to go/what to say/what to do, he knows which side his bread his buttered"
It means he knows where he will be well cared for usually "for free" is implied.
it means he knows where to go what to do and where to stay to get free rooms and lodgings etc.
or where he gets well paid for doing nothing or very little, those kind of situations.
Example he may be living with his grandmother who provides food for free and charges no rent in a situation where the grandmother does not need to be cared for, he is just taking advantage of a grandmother's natural response to a grandchild.
Very often used negatively to imply the person is a user or advantage taker.
from dictionary.com
Be aware of where one's best interests lie, as in Jerry always helps out his boss; he knows which side of his bread is buttered.
This expression alludes to the more favorable, or buttered, side of bread and has been used
metaphoricallysince the early 1500s.