Say you want to kill the tomcat server or any services which have tomcat related word in their service name, then use following command

ps -ef | grep “tomcat”

Advertisements