1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 17:42:07 +02:00
tldr/pages/common/mkfifo.md
K.B.Dharun Krishna 898f711019
pages/*: update GNU coreutils links, sync translation pages (#15543)
Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2025-01-18 18:45:33 +05:30

20 lines
490 B
Markdown

# mkfifo
> Make FIFOs (named pipes).
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/mkfifo-invocation.html>.
- 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}}`
- Share your terminal session in real-time:
`mkfifo {{path/to/pipe}}; script -f {{path/to/pipe}}`