Linux Command-ps: displays the snapshot of the current process
Linux Command-ps: display the snapshot command format of the current process
Ps [options]
Instance
A) view all processes
bkjia@bkjia:~$ ps aux | headUSER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMANDroot 1 0.0 0.0 3664 1984 ? Ss Apr22 0:00 /sbin/initroot 2 0.0 0.0 0 0 ? S Apr22 0:00 [kthreadd]root 3 0.0 0.0 0 0 ? S Apr22 0:01 [ksoftirqd/0]root 4 0.0 0.0 0 0 ? S Apr22 0:38 [kworker/0:0]root 6 0.0 0.0 0 0 ? S Apr22 0:00 [migration/0]root 7 0.0 0.0 0 0 ? S Apr22 0:00 [watchdog/0]root 8 0.0 0.0 0 0 ? S Apr22 0:00 [migration/1]root 10 0.0 0.0 0 0 ? S Apr22 0:01 [ksoftirqd/1]root 11 0.0 0.0 0 0 ? S Apr22 0:00 [watchdog/1]
Description
Column Title meaning:
Title |
Description |
USER |
User ID, indicating the owner of the process |
PID |
Process ID |
% CPU |
CPU usage percentage |
% MEM |
Memory usage percentage |
VSZ |
Virtual Memory consumption size |
RSS |
The actual memory used. Physical memory (RAM) used by the process (in KB) |
TTY |
Indicates the control terminal of the process. The question mark indicates no terminal control. |
STAT |
Indicates the current status of the process. |
START |
The time when the process is enabled. If it is more than 24 hours, the date is used for display. |
TIME |
Indicates the total CPU time consumed by the process. |
Process status description:
Status |
Description |
R |
Running status. The process is running or is ready to run. |
S |
Sleep Status. The process is not running, but waiting for an event, such as inputting a keyboard or receiving a network packet. |
D |
The process is waiting for I/O operations, such as hard drive. |
T |
Paused. The process is instructed to be paused (you can continue running later) |
Z |
Invalid or "zombie" process. Child process terminated, but not completely released by parent process |
< |
High-priority process. Processes can be assigned more importance and more CPU time. |
N |
Low-priority process. |
This article permanently updates the link address: