Kill Tomcat with a single command

This will kill all Tomcat processes running on the machine

ps -ef | grep tomcat | awk '{print $2}' | xargs kill -9

If the Tomcat process is running as root, adding sudo before the kill command may be required

ps -ef | grep tomcat | awk '{print $2}' | xargs sudo kill -9
Advertisements