April 22, 2017

Relevant Linux Features: Pipe

Relevant Linux Features: Pipe

The pipe is implemented with the  "|" symbol. It takes the output (stdout) of the command on the left and sends it as input (stdin)  for the command on the right:


In the example below, docker run --help is the first command. Its output is used as input to the more command, which displays the output, one screen at a time:

Note: stderr (standard error) is NOT passed through the pipe. I.e. we are not able to pass stderr through the pipe as we can stdout.

No comments:

Post a Comment