Linux view the CPU and memory usage

Linux view the CPU and memory usage


How to view the Linux machine CPU and memory usage.

By the following manner:

 

1, view the CPU and memory in real time using case

Use the following command:

top

After the command is executed, the effect is as follows ( the use of resources will change in real time , using Ctrl + C , exit view):

 

 

 

2, view the CPU information

Use the following command:

cat /proc/cpuinfo

After the command is executed, the following effect (the current host can see two processors CPU , i.e., two core CPU )

 

 

 

3, view memory information

Use the following command:

cat /proc/meminfo

After the command is executed, the following effect (see information current host total memory remaining capacity, etc.)

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/miracle-luna/p/12018302.html