I have a question regarding killing processes that are running (and that I have started)
I have started many procesess and now I want to terminate them
doing
ps aux | grep aword
gives me the processes I want to kill. (aword being a word related to the processes) There are a lot so it takes me a while to kill them all
I would like to do it faster. Now a peculiarity of these processes is that some have as USER "theuser" and some have "root" I tried and it seems I have to kill first the ones with "theuser" because if I try the roots first , the process comes back to life.
So my question is how can I kill all the processes that come out of the grep command above but in the order that first the ones by "theuser" and then the ones with root (which require sudo of course)