Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
ps -ef -u root -U root

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

-u : EUID

share|improve this question
up vote 8 down vote accepted

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

POSIX define ps -e as:

Write information for all processes (Equivalent to -A.)
share|improve this answer
Ok, I thought adding a filter would... filter more. Thanks – PerrierCitror 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 posting your answer, you agree to the privacy policy and terms of service.

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