linux get ram info code example
Example 1: linux check ram frequency
sudo lshw -short -C memory
Example 2: how to get ram detail in linux
sudo dmidecode --type 17
Example 3: ubuntu ram type
sudo dmidecode | grep -A 15 Memory
Example 4: linux command to check memory usage in percentage
$ free -t | awk 'NR == 2 {printf("Current Memory Utilization is : %.2f%"), $3/$2*100}'
or
$ free -t | awk 'FNR == 2 {printf("Current Memory Utilization is : %.2f%"), $3/$2*100}'
Current Memory Utilization is : 20.42%