get memory usage report linux code example Example 1: Ram usage in linux $ cat /proc/meminfo Example 2: check vm ram details in linux sudo dmidecode -t 17