MKFIFO(1)

πŸ’– MKFIFO(1) πŸ’–

okay so bestie, welcome to the mkfifo page β€” it lives in the General Commands Manual, and it's literally the glow-up you need when you want a named pipe. no cap. πŸŽ€


✨ NAME ✨

mkfifo β€” Create a FIFO with the given name.

like, it makes a named pipe. that's the whole vibe. πŸ¦‹


🌸 SYNOPSIS 🌸

mkfifo [OPTION]... NAME...

so you give it some options (optional, obviously, it's giving low-maintenance) and then one or more NAMEs. periodt. πŸ’…


🫢 DESCRIPTION 🫢

Create a FIFO with the given name.

that's it. that's the description. a named pipe appears, you're the main character, the end. πŸ‘‘


πŸ’… OPTIONS πŸ’…

  • -m, --mode <MODE> β€” file permissions for the fifo. yes queen, set your perms.
  • -Z β€” set the SELinux security context to default type
  • --context[=<CTX>] β€” like -Z, or if CTX is specified then set the SELinux or SMACK security context to CTX
  • -h, --help β€” Print help
  • -V, --version β€” Print version

πŸ”₯ VERSION πŸ”₯

v(uutils coreutils) 0.12.0


πŸŽ€ EXAMPLES πŸŽ€

okay bestie, the tldr girlies hooked us up with these, let's go. ✨

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 &
don't sleep on that &, it's the whole point β€” otherwise your shell just sits there waiting like πŸ‘οΈπŸ‘„πŸ‘οΈ

Receive data through a named pipe:

cat path/to/pipe

Share your terminal session in real-time:

mkfifo path/to/pipe; script [-f|--flush] path/to/pipe
The examples are provided by the tldr-pages project <https://tldr.sh> under the CC BY 4.0 License. Please note that, as uutils is a work in progress, some examples might fail.

like, some of these might not slay yet, it's a work in progress fr fr 😭 but we're rooting for them. πŸ’œ


🌈 that's the whole page, you ate that. this was written up on 2026-09-25 and the version is v(uutils coreutils) 0.12.0 β€” go make some pipes bestie, ily, bye πŸ’–πŸ§šβœ¨

πŸ“¦ where this page comes from