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?
ps. Also the header line will be counted bywc. – Vilinkameni Oct 22 '21 at 10:22