Linux Process View command collection

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.