You can do
ps aux | grep -i <part of process name>
and the PID is in the second column of the output. However for this use case I recommend a process manager like htop or btop
Be sure to follow the rule before you head out.
Rule: You must post before you leave.
^other^ ^rules^
You can do
and the PID is in the second column of the output. However for this use case I recommend a process manager like htop or btop