ubuntu ddr info code example Example 1: how to get ram detail in linux sudo dmidecode --type 17 Example 2: ubuntu ram type sudo dmidecode | grep -A 15 Memory