Files
cheatsheet-tldr/tldr/mkfifo
2024-08-24 00:14:54 +00:00

22 lines
450 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# mkfifo
> Make FIFOs (named pipes).
> More information: <https://www.gnu.org/software/coreutils/mkfifo>.
- Create a named pipe at a given path:
`mkfifo {{path/to/pipe}}`
- Send data through a named pipe and send the command to the background:
`echo {{"Hello World"}} > {{path/to/pipe}} &`
- Receive data through a named pipe:
`cat {{path/to/pipe}}`