Talk:Ps

From LQWiki
Jump to: navigation, search

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)

The LQwiki is not intended as a place for tech support questions. If you wish, you can still ask such questions in the talk pages, but you will receive a more accurate and rapid response at the LQ forums. If you are not already a member of the forums, you can register here. You can link to LQwiki articles from the LQ forums like so: [[Insert article name here]] After you fix your problem, please share your experience with others back at the LQwiki! Crazyeddie 15:39, Mar 4, 2005 (EST)