4
ps -ef -u root -U root

Also displays processes whose user is not root (the current user). Can someone explain me why ?

-u : EUID

-U : RUID
10

Because you use -e option, it causes ps select all processes.

POSIX define ps -e as:

-e
Write information for all processes (Equivalent to -A.)
2
  • Ok, I thought adding a filter would... filter more. Thanks Sep 1 '14 at 11:37
  • @PerrierCitror: Use -u and -U alone, they are not combination with -e.
    – cuonglm
    Sep 1 '14 at 11:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.