I can see specific users in top (now htop :)) and would like to kill all processes of a specific user. The only thing is I don't know how. I can kill them one by one with the PID id but is there a command that allows me to kill per user?
Kill specific user processes
Started by
Guest_Lop_*
, Oct 14 2007 04:29 PM
3 replies to this topic
#1
Guest_Lop_*
Posted 14 October 2007 - 04:29 PM
Guest_Lop_*
|
|
|
#2
Guest_Jordan_*
Posted 15 October 2007 - 04:11 AM
Guest_Jordan_*
Use this command:
which will terminate all pids owned by your users with a sig level of 9.
kill -9 `ps -u <username> -o "pid="`
which will terminate all pids owned by your users with a sig level of 9.
#3
Guest_erik_*
Posted 17 October 2007 - 06:38 AM
Guest_erik_*
What does the ps -u command do?
#4
Guest_Jordan_*
Posted 18 October 2007 - 06:45 AM
Guest_Jordan_*
ps - report a snapshot of the current processes.
-U: userlist
select by real user ID (RUID) or name.
It selects the processes whose real user name or ID is in the userlist list. The real user ID identifies the user who created the process, see getuid(2).
-U: userlist
select by real user ID (RUID) or name.
It selects the processes whose real user name or ID is in the userlist list. The real user ID identifies the user who created the process, see getuid(2).


Sign In
Create Account

Back to top









