Home>Article>Operation and Maintenance> How to check the running status of the system and processes under Linux

How to check the running status of the system and processes under Linux

王林
王林 Original
2020-06-22 16:15:11 5113browse

How to check the running status of the system and processes under Linux

#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.

How to check the running status of the system and processes under Linux

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn