pgrep -f 和pkill -f

pgrep -f abc 匹配出含abc的进程 并输出进程的pid

pkill -f abc 杀掉含abc的所有进程

原文地址:https://www.cnblogs.com/bass6/p/6478765.html