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 ifCTXis specified then set the SELinux or SMACK security context toCTX-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
- ubuntu stonking: rust-coreutils 0.12.0-1ubuntu2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms