What is Pipe (|)?

A mechanism in the shell, written as "command1 | command2", that connects the standard output of the left command directly to the standard input of the right command. By chaining many small commands, as in sort ips.txt | uniq -c | sort -nr (a pipeline), complex processing can be built without creating intermediate files. The commands on both sides run at the same time, and data flows through in order. Standard error is not connected, so 2>&1 is combined to pass errors along as well.

Japanese name: パイプ(|)

Pipe (|) appears in 1 practice question across 1 topic, including Linux and Command-Line Basics.

Field: Linux and Command-Line Basics

Pipe (|) in the explanations

Questions that mention Pipe (|) (1)

  1. The choices omit the leading spaces of the line. In the session above, which of the following is the line printed by the last pipeline?

Books on Linux and Command-Line Basics Ad

As an Amazon Associate I earn from qualifying purchases.

Related terms

cron Environment variable File permissions Git grep Hard link I/O redirection inode Regular expression Shell

Back to the glossary