When you know something (especially a place) like the back of your hand, you know it very well.

– Shall we ask for directions? – No, we don’t have to. I know these streets like the back of my hand.