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)

Post navigation

Arunlal Ashok

Linux Systems Architect at Endurance International Group. I know her (Linux) since many years. Linux lover. Like to play on Linux console. I started this blog to share and discuss Linux thoughts.

Always happy for an open discussion! Write to arun (@) crybit (dot) com. Check about me for more details. About this blog and our strong members, check The team CryBit.com

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 *