linux show ram info code example Example 1: how to get ram detail in linux sudo dmidecode --type 17 Example 2: check vm ram details in linux sudo dmidecode -t 17