Home / Gadget Insights

top command to check the memory usage

time:2025-02-07 15:02:43 Gadget Insights

 top View the memory usage

To use the top command to view memory usage, you can type top -o %MEM on the command line, and this command will sort the memory usage by size, and clearly show which service is using the most memory.

Alternatively, this can be done in the top run with the internal command M, which sorts the list of processes in order of memory usage.

It should be noted that if you do not have htop installed, you need to install it first, the Ubuntu installation command is apt-get update && apt-get install htop, and the CentOS installation command is yum update && yum install htop.

《top command to check the memory usage》 This does not represent the views of this website. If there is any infringement, please contact us to delete it.

Ranking

Digital Insights