1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 23:42:09 +02:00
tldr/pages/common/mkfifo.md
Managor c373845f80
mkfifo: add usage examples (#13488)
Co-authored-by: spageektti <git@spageektti.cc>
2024-08-23 13:42:11 +02:00

16 lines
357 B
Markdown

# 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}}`