Is it possible to monitor processes of multiple (but not all) users in Linux using top?
Something of this kind:
top -u user1 -u user2 Is it possible to monitor processes of multiple (but not all) users in Linux using top?
Something of this kind:
top -u user1 -u user2 My suggestion is to run the top command using the u options, either in different tabs, or different terminals (that way you could get what you are asking for in an organized way). The top command doesnt offer that option, so the only other way would be to filter the top output with the two "usernames" you want to show.
Alternativelly and as a work around, you can run
top | grep username Say that I have two user : tomcat1 and tomcat2
top | grep tomcat and it will show:
30243 tomcat1 20 0 9702832 5.1g 25192 S 0.7 32.8 871:07.12 java 16279 tomcat2 20 0 11.9g 5.4g 13508 S 0.3 34.9 99:03.34 java