Linux Process, linux deletion Process
1. Process Overview
◆ A process is a program or command being executed. Every process is a running entity with its own address space and occupies certain system resources.
2. Role of process management
◆ Determine the health status of the server
◆ View all processes in the system
◆ Killing Processes
3. Process Management-view Processes
View All PROCESSES IN THE SYSTEM
[Root @ localhost ~] # Ps aux
# View all processes in the system, using the BSD operating system format (Unix format)
[Root @ localhost ~] # Ps-le
# View all processes in the system and use the standard Linux Command Format.
◆ USER: the USER who generates the process;
◆ PID: ID of the process;
◆ % CPU: the percentage of CPU resources occupied by the process. The higher the CPU usage, the more resources the process consumes;
◆ % MEM: Percentage of physical memory occupied by the process. The higher the memory occupied, the more resources the process consumes;
◆ VSZ: the virtual memory occupied by the process, in KB;
◆ RSS: the actual physical memory occupied by the process, in KB;
◆ TTY: the process runs on that terminal. The tty1-tty7 represents the local console terminal, the tty1-tty6 is the local character interface terminal, and the tty7 is the graphical terminal. Pts/0-255 represents a virtual terminal.
◆ SATA: Process status. Common statuses include: R: Run, S: Sleep, T: Stop, s: contains sub-processes, and +: Located in the background
◆ START: START Time of the process
◆ TIME: the CPU computing TIME occupied by the process. Note that it is not the system TIME.
◆ COMMAND: name of the COMMAND that generates this process
4. view the System Health Status
[Root @ localhost ~] # Top [Options]
Option:
-D seconds: specifies the number of seconds that the top command updates. By default, commands that can be executed in the top command interaction mode in 3 seconds are as follows:
? Or h: Help of the real interaction mode
P: sort by CPU usage. This option is used by default.
M: sort by memory usage
N: sort by a PID
-Q: Exit top.
The most important task of the top command is the first five lines!