How to show process usage for single user with TOP command

TOP command is used to display a dynamic view of all process running under the server. We already discussed about the TOP command and some of its examples. Click here for getting more details about Top command usages and examples in Unix/Linux

How to show process usage for single user with TOP command ?
To list all process running uder a user on your Unix/Linux server, you can use the switch ‘u’ along with the TOP command.
ie, ” top -u $username

Example
The top command without any switches will displays all process running under the server dynamically. see the image attached here showing all process of users root, smmsp and apache on server.

[root@server ] top

1

The top command along with specific user name(top -u $username) will shows only the process which currently running under the server. In the example here, the top command showing the process details of the user apache under server.

[root@server ] top -u apache

2

Thanks.

Related topics
Top command usages and examples in Unix/Linux
PS command with example (Unix/Linux)

Post navigation

Arunlal A

Senior System Developer at Zeta. Linux lover. Traveller. Let's connect! Whether you're a seasoned DevOps pro or just starting your journey, I'm always eager to engage with like-minded individuals. Follow my blog for regular updates, connect on social media, and let's embark on this DevOps adventure together! Happy coding and deploying!

2 thoughts on “How to show process usage for single user with TOP command

Leave a Reply

Your email address will not be published. Required fields are marked *