How do I kill all processes from a user using GPU? E.g.
killall --gpu --user kong
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.
--gpu
flag for killall? Manpage even in 21.10 does not mention it. – N0rbert Aug 23 '21 at 19:48