The pipe character (|) is used to take the standard output of the command on the left, and feeds it as standard input to the command on the right. It is a crucial tool in shell scripting and command line operations to chain commands and construct more complex procedures by handling the flow of data from one utility to another.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is standard output and standard input in the context of Linux commands?
Open an interactive chat with Bash
Can I use multiple pipes in a single command line?
Open an interactive chat with Bash
What are some common use cases for the pipe character in Linux?