[root@sre01 ~]# pidof sshd
8901 8900 6149 1423 1165
排除一些进程号显示
[root@sre01 ~]# pidof -o 8900,8901 sshd
6149 1423 1165
按文件名查找
[root@sre01 ~]# pidof -x xxx.sh
微信扫一扫
[root@sre01 ~]# pidof sshd
8901 8900 6149 1423 1165
排除一些进程号显示
[root@sre01 ~]# pidof -o 8900,8901 sshd
6149 1423 1165
按文件名查找
[root@sre01 ~]# pidof -x xxx.sh
相关推荐