有时,由于主机cpu高的时候,我们需要手工kill掉某个用户的所有进程,可以采用如下的格式: ps -ef |grep aiadmin |grep -v grep |awk '{print $9}' | xargs kill -9 特此记录。