好用Linux命令系列二之pidof
pidof 用于查找一个运行的程序的PID #ps -ef | grep nginx |grep -v grep awk '{print $2}' #pidof nginx
2023Linux认证报考指南