Hi Guys I need to kill all processes in a session but only from an user, not all.
Like user1, find all PIDs in them and print them like
120,451,487,455,... then exclude some I want for example I want 120 and 451 to not be killed but the rest yes.
I can do kill -9 PID this will kill the PID, but I am not sure how to kill all of them or find them from the user