A pipe connects the output of one program to the input of another program. This is especially used to implement the shell | operator.
A pipe connects the output of one program to the input of another program. It is one of the fundamental interprocess communication mechanisms on Linux.
In the shell, the |
operator creates a pipe connecting the process on the left to the process on the right. For example
mycommand | less
sends the output of mycommand
to the command less
, which displays its input (i.e. the output of mycommand
) in an interface allowing navigation and searching.