Talk:Ps

How do I kill all processes owned by a user or group? I've noticed that after logout some users are still showing as active on the network.


 * Write a script or something. Here's a tip,

ps au | tr -s ' ' | cut -d' ' -f1,2 | grep $username | cut -d' ' -f2 gets you the pids of all $username's processes. Dysprosia 01:32, Aug 28, 2004 (EDT)

Could somebody write out some typical scripts for inclusion in the article? Crazyeddie 19:15, Aug 28, 2004 (EDT)


 * It would have been Better if the author above (who should have signed his/her posts, I'm not going to bother checking the history) learnt how to write a script and wouldn't have to ask, but I can see how it would be a useful example to have in the article ;)
 * I haven't tested this, though, since it'll be too much effort to minimize the disruption on my own system. Dysprosia 03:50, Aug 29, 2004 (EDT)

I'm getting insane load on my dual xeon 35+ users and the average load is over 30. I'm looking at the ps to try and hunt down the culprits. Could someone point to a tracking tool for isolating load hogs? thanks! --DennisDaniels 15:42, Mar 2, 2005 (EST)

Crazyeddie 15:39, Mar 4, 2005 (EST)