Chapter 14: Process Management

14.1: Basic introduction

 14.2: Display the processes executed by the system

 14.3: Terminating processes kill and killall

 14.4: View process tree pstree

        Basic syntax: pstree [option] , you can view process information more intuitively

Common options:

        ​ -p: Display the PID of the process

        ​ -u: Display the user who owns the process

14.5: Service management

View service name:

​Method 1: Use setup -> system services to see all

​ Method 2: /etc/init.d See the services managed by the service command ls -l /etc/init.d

Runlevel:

 

14.6: Dynamic monitoring of processes

        Introduction: top is very similar to ps command. They are both used to display the executing process. The biggest difference between them is that top can update the running process after executing for a period of time.

        Basic syntax: top [options]

        Option description:

Options
-d seconds Specify the top command to update every few seconds, the default is 3 seconds
-i Make top not display any idle or zombie processes
-p Only monitor the status of a process by specifying the monitoring process ID.

 zombie : zombie process

        Interactive operations:

operate Function
P Sort by CPU usage, the default is this item
M Sort by memory usage
N Sort by PID
q Exit top
14.7: Monitor network status

 

Guess you like

Origin blog.csdn.net/weixin_63925896/article/details/132170521