PS-EF viewing the active process
PS-EF |grep ABC view activity process with "ABC"
PS-EF |grep-v ABC to view activity processes that do not contain ABC
1) PS A shows all the programs under the current terminal, including other users ' programs.
2) ps-a Show All Programs.
3) PS C lists the program, displays the actual instruction name of each program, and does not include the path, parameter or the indication of the resident service.
4) Ps-e The effect of this parameter is the same as specifying the "A" parameter.
5) When listing the program, PS e displays the environment variables used by each program.
6) PS F Displays the tree structure with ASCII characters, expressing the relationship between the programs.
7) ps-h shows the tree structure, indicating the relationship between the programs.
8) Ps-n shows all the programs except the program under the PS Command Terminal.
9) PS s uses the program signal format to display the program status.
PS S when listing programs, including interrupted sub-program data.
One) ps-t< terminal number >
Specify the terminal number and list the status of the program that belongs to the terminal.
PS u
Displays the status of the program in a user-oriented format.
PS X
Show All programs, do not differentiate by terminal.
The most common approach is to Ps-aux, and then use a pipe symbol to direct to grep to find a specific process and then manipulate the specific process.
Ps-ef
[Email protected] ~]# Ps-ef
UID PID PPID C stime TTY time CMD
Root 1 0 0 10:04? 00:00:00/sbin/init
Root 2 0 0 10:04? 00:00:00 [Kthreadd]
Root 3 2 0 10:04? 00:00:00 [migration/0]
Root 4 2 0 10:04? 00:00:00 [ksoftirqd/0]
UID User ID
PID Process ID
PPID Parent Process ID
C CPU Usage
Stime Start time
TTY starts TTY for this process
The total time that this process ran
CMD command name
Ps-ef is shown in System V mode, which is more important than BSD mode ...
[Email protected] ~]# Ps-aux
USER PID%cpu%MEM VSZ RSS TTY STAT START time COMMAND
Root 1 0.1 0.0 19232 1476? Ss 10:04 0:00/sbin/init
Root 2 0.0 0.0 0 0? S 10:04 0:00 [Kthreadd]
Root 3 0.0 0.0 0 0? S 10:04 0:00 [migration/0]
Root 4 0.0 0.0 0 0? S 10:04 0:00 [ksoftirqd/0]
PS aux is displayed in BSD mode
USER, don't mention it.
Pid=process ID
Cpu......
Mem=memory
......
TTY, terminal number
......
command to start the commands for this process.
Uid,user ID.
Ps-ef/ps-aux viewing the active process