Say, for example, we have the following executed in the shell:
ls | grep "abc" | wc
I understand how a child process would fork from the shell and how its a child, like this,
Shell (pid=12)
\
\
ls (pid=13)
but I'm not sure how the pipe and the trailing commands fit in. Are they also children of the shell, and not ls
?