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
So, if you run top -u root you'll get only root processes.
top -u root
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
1 year ago