liǎo​rú​zhǐ​zhǎng

to know something like the back of one's hand