How many processes are created in a command that contains a "pipe"

Discussion in 'Shell Script' started by arsenal_fan, Aug 28, 2010.

  1. arsenal_fan

    arsenal_fan New Member

    Joined:
    Aug 28, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hi,

    I was recently asked in an interview the number of processes that are created when I enter in a command that contains a pipe.

    For eg. If I enter the command: $who | tee /dev/tty | wc -l

    Could anyone tell me how many(which) processes are created and in what order are they created?

    Thanks.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice