get total ram linux 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: check ram arch linux
cat /proc/meminfo | grep Mem
$ cat /proc/meminfo
sudo dmidecode --type 17
cat /proc/meminfo | grep Mem