How does shell execute piped commands?

后端 未结 3 1857
Happy的楠姐
Happy的楠姐 2021-01-04 13:25

I want to understand that how does shell executes piped commands ? e.g. cat | more. I am aware that for executing a normal command shell does a fork, execute it and then ch

3条回答
  •  梦毁少年i
    2021-01-04 14:31

    The same, just the stdout of one application is the same as the next stdin. http://unixwiz.net/techtips/remap-pipe-fds.html

提交回复
热议问题