📜  杀死所有java进程linux - Java代码示例

📅  最后修改于: 2022-03-11 14:52:43.756000             🧑  作者: Mango

代码示例1
// You can change the to kill other processes

search_terms='java' 

kill $(ps aux | grep "$search_terms" | grep -v 'grep' | awk '{print $2}')