Linux.com

Home Linux Community Forums Linux Distributions Ubuntu ps command question who can i get ps to show a use

ps command question who can i get ps to show a use

Link to this post 08 Jun 11

how can i get ps to show a user say user with status pid ppid and only for user and not jonsmith or root

Link to this post 08 Jun 11

lancebermudez wrote:

how can i get ps to show a user say user with status pid ppid and only for user and not jonsmith or root


man ps

You've got all the answers there.

Anywho... you mean something like this, don't you?


ps -U marc -u marc -o pid,user,args

Regards

Link to this post 09 Jun 11

...and to remove an user (or a list of users)

ps -U marc -u marc -o pid,user,args |grep -v "here the user you want to avoid"

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board