check total ram in linux code example Example 1: linux ram size $ cat /proc/meminfo Example 2: check vm ram details in linux sudo dmidecode -t 17