Home > Article > Operation and Maintenance > How to check memory in centos
#You can use the free command to check the memory status in centos.
Recommended: "centos usage tutorial"
The free command will display the memory usage, including physical memory, virtual swap file memory, and shared memory area segments, as well as buffers used by the system core, etc.
Syntax
free [-bkmotV][-s <间隔秒数>]
Parameter description:
-b Displays the memory usage in Byte.
-k Displays memory usage in KB.
-m Display memory usage in MB.
-h Display memory usage in appropriate units, up to three digits, and automatically calculate the corresponding unit value.
Example:
free -m: Look at memory usage
##Recommended learning:The above is the detailed content of How to check memory in centos. For more information, please follow other related articles on the PHP Chinese website!