Welcome to the Linux Foundation Forum!

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

Options

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

  • marc
    marc Posts: 647
    Options
    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
  • ben
    ben Posts: 134
    Options
    ...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