Pages

Monday, November 10, 2014

Find a process by name and automatically kill it

$ PID=$(ps -ef | grep processName | grep -v grep | awk '{print $2'}); kill -9 $PID

commandlinefu.com


by David Winterbottom (codeinthehole.com)






from All commands http://ift.tt/10TxeWd

No comments:

Post a Comment