详细用法可以参照 man pgrep,下面只是些例子 pgrep -c,--count 统计数量 -d 指定分隔符 -P 指定父进程id -l 同时展示进程名 [root@dl_23 ~]# pgrep -l ssh