#You can use the top command to view the running status of the system and processes under Linux.
(Recommended tutorial: linux tutorial)
The top command is a commonly used performance analysis tool under Linux, which can display the resource usage of each process in the system in real time , similar to Windows Task Manager.
Usage format:
top [-] [d] [p] [q] [c] [C] [S] [s] [n]
Parameter description:
d: Specify the time interval between every two screen information refreshes. Of course, users can use the s interactive command to change it.
p: Only monitor the status of a certain process by specifying the monitoring process ID.
q: This option will cause top to be refreshed without any delay. If the calling program has superuser privileges, top will run with the highest possible priority.
S: Specify the accumulation mode.
s: Make the top command run in safe mode. This will remove the potential dangers posed by interactive commands.
i: Make top not display any idle or zombie processes.
c: Display the entire command line instead of just the command name.
The above is the detailed content of How to check the running status of the system and processes under Linux. For more information, please follow other related articles on the PHP Chinese website!