Welcome to the Linux Foundation Forum!

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

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

Comments

  • 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"

Categories

Upcoming Training