The function of the ps command is to display process information;
| Symbol is a pipeline symbol, indicating that the ps and grep commands are executed simultaneously;
The grep command is a search (Global Regular Expression)
Print), which can use regular expressions to search text and then display matching lines;
The ps command has some parameters:
-e: Show all processes
-f : Full format
-h: No title displayed
-l: Long format
-w : Wide output
a: Display all processes on the terminal, including processes of other users.
r: Shows only running processes.
u: Display program status in a user-oriented format.
x: Show all programs, not distinguished by terminals.
Example:
[root@izbp163wlhi02tcaxyuxb7z wang]# ps -f | grep rabbitmq_server-3.6.1/
root 8684 6682 0 16:41 pts/3 00:00:00 grep --color=auto rabbitmq_server-3.6.1/
The result information is from front to back:
UID PID PPID C STIME TTY TIME CMD
zzw 14124 13991 0 00:38 pts/0 00:00:00 grep –color=auto dae