mkfifo(1) - man - phpman

Look up a command

 

Markdown Format | JSON API | MCP Server Tool | Cheat Sheet


TLDR: mkfifo (tldr-pages)

Make named pipes, also known as First In First Out (FIFO).

  • 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|--flush}} {{path/to/pipe}}
MKFIFO(1)                                   User Commands                                  MKFIFO(1)



NAME
       mkfifo - make FIFOs (named pipes)

SYNOPSIS
       mkfifo [OPTION]... NAME...

DESCRIPTION
       Create named pipes (FIFOs) with the given NAMEs.

       Mandatory arguments to long options are mandatory for short options too.

       -m, --mode=MODE
              set file permission bits to MODE, not a=rw - umask

       -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

       --help display this help and exit

       --version
              output version information and exit

AUTHOR
       Written by David MacKenzie.

REPORTING BUGS
       GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
       Report any translation bugs to <https://translationproject.org/team/>

COPYRIGHT
       Copyright  ©  2020 Free Software Foundation, Inc.  License GPLv3+: GNU GPL version 3 or later
       <https://gnu.org/licenses/gpl.html>.
       This is free software: you are free to change and redistribute it.  There is NO WARRANTY,  to
       the extent permitted by law.

SEE ALSO
       mkfifo(3)

       Full documentation <https://www.gnu.org/software/coreutils/mkfifo>
       or available locally via: info '(coreutils) mkfifo invocation'



GNU coreutils 8.32                          January 2026                                   MKFIFO(1)

Generated by phpMan Author: Che Dong Under GNU General Public License
2026-06-02 16:29 @216.73.216.151 CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 TransitionalValid CSS!