Pipe (Linux)
First introduced to me in CS138 through Derek Rayside.
Pipes allow us to use the output of one program (via stdout
) as the input to another (via stdin
).
Pipes are used for stream redirection
Done with the |
symbol.
For example,
- use
grep -i file.txt
to ignore casing
Types of Pipe
I saw these different types of pipes through this article https://www.baeldung.com/linux/ipc-performance-comparison to understand IPC.
Resources
I also saw the SE350 teacher use pgrep
.