linux ram usage code example
Example 1: linux ram size
$ cat /proc/meminfo
Example 2: how to get ram detail in linux
sudo dmidecode --type 17
Example 3: linux memory usage
// linux command for reporting used memory percentage
$ free | grep Mem | awk '{print $3/$2 * 100.0}'
23.8171
Example 4: check vm ram details in linux
sudo dmidecode -t 17