I check the manual of ps
, and it said -e
will list all processes, while -u
will list processes for a specific user.
So I try to use ps -eu myaccount | wc -l
and it outputs 280.
But if I use ps -u myaccount | wc -l
and it outputs 12.
Since both are used to output all the processes for the user myaccount
, why the result will be different?