View cpu usage in linux

Source: Internet
Author: User
Tags superuser permission
In linux, view the cpu usage-Linux Enterprise Application-Linux server application information. The following is a detailed description. Permission: All Users

Usage: top [-] [d delay] [q] [c] [S] [s] [I] [n] [B]

Description: displays the process status in real time.

Count?
D: Change the display update speed, or press s in interactivecommand

Q: there is no delay in display speed. if the user has the superuser permission, top will be executed in the highest priority.

C: Switch the display mode. There are two modes: one is to display only the name of the execution file, and the other is to display the complete path and name S: accumulative mode, accumulates the CPU time of the completed or disappearing sub-itinerary (deadchildprocess ).

S: security mode. Cancel negotiated commands to avoid potential crisis.

I: Do not display any idle (idle) or useless (zombie) itinerary

N: number of updates. After the update is completed, the system will exit the top

B: The batch file mode, used together with the "n" parameter, can be used to output the top result to the file.

Example:
Show 10 updates and exit
Top-n 10

The user will not be able to use the negotiated command to run the following command on the itinerary: top-s

Input the result of the second update display to the file named top. log: top-n 2-B <top. log
Related Article

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.