How to get `top` for a specific user only?

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

1 Answer

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.

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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

You Might Also Like