I want to use ps -ef | grep \"keyword\" to determine the pid of a daemon process (there is a unique string in output of ps -ef in it).
ps -ef | grep \"keyword\"
I can kill the pr
I use
ps -C "keyword" -o pid=
This command should give you a PID number.