linux command to check memory usage by process code example Example: Ram usage in linux $ cat /proc/meminfo