How to use the top command of Linux
This article introduces the relevant knowledge of "how to use the top command of Linux". Many people will encounter such a dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Linux common commands top commands are used to display the dynamics of process in real time.
Syntax top [-] [d delay] [Q] [c] [S] [s] [I] [n] [b] parameter description:
D: change the update speed of the display, or press s in the conversational instruction line (interactive command)
Q: there is no delay in the display speed. If the user has the permission of superuser, top will be executed in the highest priority.
C: switch display mode, there are two modes, one is to display only the name of the execution file, and the other is to display the full path and name
S: cumulative mode, which accumulates the CPU time of completed or missing subjourneys (dead child process)
S: safe mode, cancel conversational instructions to avoid potential crisis
I: do not show any idle (idle) or useless (zombie) itinerary
N: the number of updates. After completion, you will exit top.
B: batch file mode, used with the "n" parameter, can be used to output the results of top to the file
Instance displays process information
# top displays complete commands
# top-c displays program information in batch mode
# top-b displays program information in cumulative mode
# top-S sets the number of information updates
Top-n 2max / indicates that the update time of display setting information is terminated after updating twice.
# top-d 3 beat / indicates that the update period is 3 seconds to display the specified process information
# top-p 139amp / displays the process information with process number 139, CPU, memory occupancy, etc. show ten updates and then exit
Top-n 10 users will not be able to use conversational instructions to command the stroke
This is the end of top-s "how to use Linux's top commands". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!