and where did that phrase come from "to know one's onions"?

Good question. What does the phrase mean, please?