In top screen, by default it shows all users' processes. How to exclude some users(for example, root and nobody) from the top real-time screen?

link|improve this question

69% accept rate
feedback

1 Answer

top -U root shows only processes from root. Unfortunately that is the only option for limiting users according to the man page.

link|improve this answer
But if you wanted to deviate from using top, you could do ps aux | grep -v $USERNAME to see all processes except the user you specified. – Tim Jan 6 at 18:14
Thanks. I know those two commands. I've searched around but didn't find anyone ask about this. top -u can see one user, but I want to see more users in real-time. – garconcn Jan 6 at 18:22
1  
top | egrep -ve "(root|knoppix)"? Modify to suit your requirements. – user1125087 Jan 7 at 2:52
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.