how can i get ps to show a user say user with status pid ppid and only for user and not jonsmith or root
how can i get ps to show a user say user with status pid ppid and only for user and not jonsmith or root
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
...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"
The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.
Join / Linux Training / Board