How to check memory information on CentOS 7?

On CentOS 7, you can use the following command to view memory information:

  1. at no cost
free -h

This command will display memory information in a readable format, including total memory, used memory, free memory, as well as utilization of cache and buffers.

  1. show me information about the system’s memory.
cat /proc/meminfo

This command will provide detailed information about the memory, including total memory, free memory, used memory, as well as the size of cache and buffers.

  1. Decode the DMI (Desktop Management Interface) data.
sudo dmidecode -t memory

This command will provide detailed information about the physical memory modules installed in the system, including manufacturer, model, capacity, and speed.

Please note that the above command needs to be executed by a user with root privileges.

广告
Closing in 10 seconds
bannerAds