-5

How do I kill all processes from a user using GPU? E.g.

killall --gpu --user kong
Kong
  • 1,241

1 Answers1

-1

Instead of using GPU, you can try a one liner like this:

for i in $(ps axu | tr -s " "  | grep "^kong" | cut -d " " -f 2); do sudo kill -9 $i, ; done

Here, I'm getting all processes belonging to a user and forcing them to be terminated by sending them a kill signal. I assumed the username is kong.