2 ms·Alternatively: ps aux | grep processname | awk '{print $2}' | xargs kill but pkill is the better option.by junon 5y agoAlternatively: ps aux | grep processname | awk '{print $2}' | xargs kill but pkill is the better option.