pkill -9 -u `id -u username`
把这里的username替换成某用户名即可
参考:https://stackoverflow.com/questions/15452081/kill-all-processes-for-a-given-user
pkill -9 -u `id -u username`
把这里的username替换成某用户名即可
参考:https://stackoverflow.com/questions/15452081/kill-all-processes-for-a-given-user