To know something "inside out" or "inside and out"?
This is a literal sense. Additional definitions are more figurative, "knowing someone inside out" is to know them thoroughly. "inside and out" is in Merriam Websters abridged dictionary, and is
Get Price