This question already has an answer here:
When ever we execute a command say
ls -l, a new shell is spawned with
execve() executes your command. Now my question is when this thing complete and child shell shutdowns how is the output passed to the parent shell which shows it. Does child writes the
STDOUT of parent shell? What exactly happens here?