In Linux, the ps aux command is used to explain five processes in linux: 1. running (running or waiting in the running Queue) 2. interruption (sleep, blocked, waiting for the formation of a condition or receiving a signal) 3. do not interrupt (do not wake up when receiving the signal or do not run, the process must wait until an interruption occurs) 4. dead (the process has been terminated, but the process descriptor exists until the parent process calls wait4 () released after the system call) 5. stop (the process stops running after receiving signals from SIGSTOP, SIGSTP, SIGTIN, and SIGTOU) www.2cto.com 1) ps a displays all programs under the current terminal, including those of other users. 2) ps-A shows all programs. 3) when listing programs in ps c, the real command name of each program is displayed without the path, parameter or resident service identifier. 4) the effect of this parameter is the same as that of the specified "A" parameter. 5) when listing programs, ps e displays the environment variables used by each program. 6) ps f uses ASCII characters to display the tree structure and express the relationship between programs. 7) the ps-H tree structure is displayed, indicating the relationship between programs. 8) ps-N shows all programs, except the programs under the ps command terminal. 9) ps displays the program status in the program signal format. 10) when listing programs in ps, it includes interrupted subroutines. 11) ps-t <terminal number> specifies the terminal number and lists the status of programs belonging to the terminal. 12) ps u displays the program status in user-based format. 13) ps x shows all programs, which are not distinguished by terminals. 14) ps-l growth, please refer to the following link for the PID information: www.2cto.com # ps-lA | moreF s uid pid ppid c pri ni addr sz wchan tty time limit 4 S 0 1 0 0 76 0-1193 109952? 00:00:03 init1 S 0 2 1 0-40--0 migrat? 00:00:03 migration/01 S 0 3 1 0 94 19-0 ksofti? 00:00:00 ksoftirqd/01 S 0 4 1 0-40--0 migrat? 00:00:02 migration/11 S 0 5 1 0 94 19-0 ksofti? 00:00:00 ksoftirqd/11 S 0 6 1 0-40--0 migrat? 00:00:02 migration/21 S 0 7 1 0 94 19-0 ksofti? 00:00:00 definition of ksoftirqd/2 correlation information: Flags (flag) of the F progress; 4 indicates the flags (stat) used as the progress of the Super Short Process ), the meaning of each STAT is that the percentage of CPU usage of IDCs In the PID process below is PRI priority (cost first priority), which is the core function of NI Nice and ADDR, indicates the part of the Progress stored in the content. If it is a running progress, generally, it is the size of the internal memory used by "-" SZ. Is the previous progress running, if it is "-", it indicates the cpu time used when the TTY login operator's terminal location TIME is in use. Command executed by CMD # ps aux | moreUSER PID % CPU % MEM vsz rss tty stat start time COMMANDroot 1 0.0 0.0 4772 564? S Sep22 init [3] root 2 0.0 0.0 0 0? S Sep22 [migration/0] root 3 0.0 0.0 0 0? SN Sep22 [ksoftirqd/0] root 4 0.0 0.0 0 0? S Sep22 [migration/1] root 5 0.0 0.0 0 0? SN Sep22 [ksoftirqd/1] root 6 0.0 0.0 0 0? Ss + Sep22 [migration/2] root 7 0.0 0.0 0 0? SN Sep22 [ksoftirqd/2] root 8 0.0 0.0 0 0? S Sep22 [migration/3] root 9 0.0 0.0 0 0? SN Sep22 [ksoftirqd/3] root 10 0.0 0.0 0 0? S <Sep22 [migration/4] memory decoding: owner of the USER process; ID of the PID process; PPID parent process; % CPU usage of the CPU process; % MEM memory usage percentage; NICE value of the NI process. The value is large, indicating that the CPU usage is less; VSZ indicates the virtual memory used by the process (KB ); the fixed amount of memory occupied by the RSS process (KB) (number of resident pages); the TTY process runs on that terminal (the location of the login terminal ), if it is irrelevant to the receiver end, it indicates (?).
If it is pts/0, it indicates whether the process is in progress by the network operator connected to the master machine before WCHAN. If it is-, it indicates that the process is in progress; START indicates the start time of the process; TIME indicates the TIME when the process actually uses the CPU to run; Name and parameter of the COMMAND; STAT too many (a common IO process); R is running and can be crossed in the queue; S is in sleep state; T stop or be tracked; W enters the memory switch (starting from kernel 2.6); X dead processes (rarely seen); Z botnets; <process with a higher priority N process with a lower priority L some pages are locked into the memory; s process leader (under which there are sub-processes); l multi-process (using CLONE_THREAD, like NPTL pthreads); + process group in the background;