How to check how much ram on Linux server

I have another query. I need to know how much ram installed on my CentOS 7 Linux server. I know in desktop it tells you easily. But, I need to check and see how mich RAM on Linux box. What command I type to see such information?

To check your RAM size on Linux box, use any one of the following command:

cat /proc/meminfo


free -m
free -k


Another option is to run htop/top command:


Or use

sudo dmidecode --type memory

Linux sysadmin blog - Linux/Unix Howtos and Tutorials - Linux bash shell scripting wiki