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

OR

free -m
free -k

See
https://www.cyberciti.biz/faq/check-ram-size-from-desktop-redhat/

Another option is to run htop/top command:

top
htop

Or use https://www.cyberciti.biz/faq/ram-size-linux/

sudo dmidecode --type memory