How to Check Memory if Single/Dual/Quad Rank

What command in redhat linux to know your memory if
it is single, dual or quad rank.

Anyone?

dmidecode may or may not be able to give you more information about the arrangement of your memory sticks.

Thanks Corona688.

dmidecode has the arrangement but not the identity of ranking. any idea guys?