How pipes works in Linux

Diagram