know like the palm of hand

know someone or something like the palm of one's hand

 and know someone or something like the back of one's hand; know someone or something like a book
to know someone or something very well. Of course I know John. I know him like the back of my hand. I know him like a book.
See also: hand, know, like, of, palm