How can I read top in bash only for one user? I don't want it to display data for other users.


From man top:

-u : Monitor by user as:     -u somebody
     Monitor only processes with an effective UID or user name matching
     that given.

So, if you run top -u root you'll get only root processes.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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