This question already has an answer here:
- In what order do piped commands run? 4 answers
ps -ejH | less. The output includes
less as well.
What is the reason? I thought it would work as follows:
pswill run and it will list all processes existing at that moment.
- Then, the output of
pswill be fed into
But according to this logic, neither
less should appear in the output of
So, why are these processes included in the output of
ps work a bit differently that I have described?