Today summarizes some of the top command's interactive commands, more practical!
H or? |
Display the help screen and give some brief summary of the commands |
K |
Terminates a process. The user will be prompted for the process PID to be terminated and what signal needs to be sent to the process. The normal termination process can use a 15 signal, and if not, use signal 9 to force end the process. The default value is signal 15. This command is masked in safe mode. |
I |
Ignore idle and zombie processes. This is a switch-on command. |
Q |
Exit program |
R |
Reschedule the priority level of a process. The user is prompted to enter the process PID that needs to be changed and the process priority value that needs to be set. Entering a positive value lowers the priority and, conversely, it gives the process a higher priority. The default value is 10 |
S |
Switch to cumulative mode. |
S |
Change the delay time between two refreshes. The user will be prompted to enter a new time in S. If there are decimals, it is converted into M S. Enter a value of 0 and the system will refresh continuously, the default value is 5 S. It is important to note that if you set too small a time, it is likely to cause a constant refresh, so it is too late to see the display, and the system load will be greatly increased. |
F or F |
Add or remove items from the current display. |
O or O |
Change the order in which items are displayed. |
I |
L Toggle Display Average load and start time information. |
M |
Toggles display memory information. |
T |
Toggles the display of process and CPU status information. |
C |
Toggles the display of the command name and the full command line. |
M |
Sorts based on the size of the resident memory. |
P |
Sort based on CPU usage percent size |
T |
Sort by Time/cumulative time |
W |
Writes the current settings to the ~/.TOPRC file. This is the recommended way to write top configuration files |
U |
Specify that only one user's process is displayed |
Linux TOP Interactive Commands