linux show ram code example Example 1: linux ram size $ cat /proc/meminfo Example 2: how to get ram detail in linux sudo dmidecode --type 17