1. [Home](<https://delaparra-services.nl/>) 
1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) 
1. [| (pipe)](<https://delaparra-services.nl/knowledge-hub/pipe>)

  

Category: CLI commands 

# | (pipe)

  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    

## What is | (pipe)?

 

| (pipe): Pipe — Send the output of one command as the input to the next. The pipe ` | ` connects commands. The output of the command on the left becomes the input of the command on the right. ` cat access.log | grep 404 | wc -l ` counts how many requests returned a 404.

 

Definition source [Coders Lingo](<https://coderslingo.com/resources/open-dataset/>), [CC BY 4.0](<https://creativecommons.org/licenses/by/4.0/>)

 

## Frequently asked questions about | (pipe)

  

### How is | (pipe) used in practice?

 

This is the core idea of the Unix command line. Small tools each do one job well, and you combine them for the task at hand. You do not need a special program to count errors in a log; you chain three general ones.

    

### What should you keep in mind with | (pipe)?

 

Two things are worth knowing. A pipe only passes normal output, not error messages, unless you add ` 2>&1 `. And in a script, a pipeline normally reports success if the last command succeeded, even when an earlier one failed. Add ` set -o pipefail ` at the top of Bash scripts so a failure anywhere in the chain is noticed.

 

## At a glance

   CategoryCLI commands Explained by[Reinier de la Parra](<https://delaparra-services.nl/about>) UpdatedNovember 25, 2026

 

## More CLI commands terms

 

- [\> and \>\>](<https://delaparra-services.nl/knowledge-hub/and>) 
- [cat](<https://delaparra-services.nl/knowledge-hub/cat>) 
- [cd](<https://delaparra-services.nl/knowledge-hub/cd>) 
- [chmod](<https://delaparra-services.nl/knowledge-hub/chmod>) 
- [chown](<https://delaparra-services.nl/knowledge-hub/chown>) 
- [cp](<https://delaparra-services.nl/knowledge-hub/cp>)

 

[All terms starting with a number or symbol](<https://delaparra-services.nl/knowledge-hub#letter-other>)

 

## Skills

 

- ### CLI flag safety

 

Use before running or suggesting shell commands with flags, especially destructive or broad ones (-f/--force, -r/-R recursive, -a/--all, -y/--yes, prune, --hard), and when a user asks what a flag means (-v, -q, -n/--dry-run, -h, -o, -p, -t, -u, -w, -x, -c, -i). Explains flags per tool and prefers dry runs and narrow scopes.

 [View skill](<https://delaparra-services.nl/skills/cli-flag-safety>) [Download zip](<https://delaparra-services.nl/skills/cli-flag-safety/download>) 
- ### Bash Defensive Patterns

 

Master defensive Bash programming techniques for production-grade scripts. Use when writing robust shell scripts, CI/CD pipelines, or system utilities requiring fault tolerance and safety.

 [View skill](<https://delaparra-services.nl/skills/bash-defensive-patterns>) [Download zip](<https://delaparra-services.nl/skills/bash-defensive-patterns/download>) 
- ### Debian Linux Triage

 

'Triage and resolve Debian Linux issues with apt, systemd, and AppArmor-aware guidance.'

 [View skill](<https://delaparra-services.nl/skills/debian-linux-triage>) [Download zip](<https://delaparra-services.nl/skills/debian-linux-triage/download>)

 [Download all skills (zip)](<https://delaparra-services.nl/knowledge-hub/pipe/skills.zip>)

 

## Manuals

 

- [The terminal commands you actually need](<https://delaparra-services.nl/manuals/terminalcommandos-die-je-nodig-hebt>) 
- [The terminal and PowerShell](<https://delaparra-services.nl/manuals/de-terminal-en-powershell>)

 

## Related services

 

- [Your own coding agent](<https://delaparra-services.nl/services#service-06>)

If you want to use a coding agent, we provide all the infrastructure to help it work efficiently.

 

## Need any help?

 

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.

  [Get in touch](<https://delaparra-services.nl/availability>)

[HTML version](https://delaparra-services.nl/knowledge-hub/pipe)
