first of all, to introduce some of the Linux viewing process commands,Pstree, PS,top,htop, and so on, the next for you to demonstrate these several common commands.
1, Linux PS command:
(1) Linux Process view command PS, Common command for #ps aux
:
650) this.width=650; "src="%5c "title=" \ "ps.jpg\" "alt=" \ "wkiom1xlrlqdaiqaaaest2ssne0097.jpg\"/"/>
Where the red circle out part:
PID: Process number %CPU: Process consumes CPU ratio %MEM: Process consumes memory ratio VSZ: Virtual memory consumption ratio RSS: Resident Memory Level
(2) PS Common command combination #ps –ef :
650) this.width=650; "src="%5c "title=" \ "ps" alt= "\" wkiom1xlroga54rvaadfxdvingw785.jpg\ "/"/>
where-e: Show All Processes -F: Show full format
2, Linux top,htop command, and the comparison between the two
(1) The top command displays for dynamic information:
650) this.width=650; "src="%5c "title=" \ "top-htop.jpg\" "alt=" \ "wkiol1xlsoibrqisaagqugpnnd4633.jpg\"/"/>
The red circled part can be hidden according to the manual instruction, in the process running state by the letter " M"will automatically hide the display occupy information, press the letter"T"will automatically hide the cumulative Occupy CPU duration .
(2) The Htop command, which can be tuned according to the process :
650) this.width=650; "src="%5c "title=" \ "htop.jpg\" "alt=" \ "wkiom1xlr3cqwpz4aafuncokb_8856.jpg\"/"/>
The difference between Top and htop commands is that the htop display information box can be changed manually.
3, vmstat command, report virtual memory status information, you can manually adjust the time interval as needed:
#vmstat 2 number 2 -bit seconds means to update the virtual memory state every 2 seconds:
650) this.width=650; "src="%5c "title=" \ "vmstat.jpg\" "alt=" \ "wkiom1xlr8yswxkjaagtvyki6pi635.jpg\"/"/>
Red Circled Partial Proof time display data comparison, where letter R: number of processes waiting to run B: number of blocks
SWPD : Total usage of swap memory
Linux Process View command collection