Is it possible to exclude some processes from being reported by top
?
For example, I would like to exclude itself from its listing (ie, I don't want top
to show in the process list).
I would also like to be able to exclude processes that do not belong to the user running top
(except for root
).
Is this possible? If so, how? If not, is there a similar tool that will do what I want (that does not involve running something like ps
frequently).
I realize that you can monitor just a given user's processes by invoking with the -u
or -U
options, but that's not the same as monitoring only processes owned by the user running top
.