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.

[[email protected] ] 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.

[[email protected] ] top -u apache

2

Thanks.

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

Arunlal Ashok

Linux Server Administrator. I'm dealing with Linux servers since 2012. I started this blog to share and discuss my ideas with the world. Check My Profile!! in uPwork (oDesk) and let me know if you need any assistance. Thanks!!

You may also like...

2 Responses

  1. January 18, 2014

    […] can refer this “How to show process usage for single user with TOP command” for more […]

  2. January 18, 2014

    […] links: How to show process usage for single user with TOP command Top command usages and examples in […]

Leave a Reply

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