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

  • Posts: 647
    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
    1. man ps

    You've got all the answers there.

    Anywho... you mean something like this, don't you?
    1. ps -U marc -u marc -o pid,user,args

    Regards
  • Posts: 134
    ...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"

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training