Get the process id for specific applications in linux


You would like to know the processes ids for certain program/keyword etc, in linux.


Use the following to get a list of the processes ids replacing ruby with the keyword that you are looking for:

ps ax | grep ruby | awk '{print $1}'