Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
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
share|improve this question

1 Answer 1

up vote 8 down vote accepted

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.)
share|improve this answer
    
Ok, I thought adding a filter would... filter more. Thanks –  PerrierCitror Sep 1 at 11:37
    
@PerrierCitror: Use -u and -U alone, they are not combination with -e. –  Gnouc Sep 1 at 11:39

Your Answer

 
discard

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.