# mkfifo(1) - man - phpman

> **TLDR:** 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}}`

*Source: tldr-pages*

---

[MKFIFO(1)](https://www.chedong.com/phpMan.php/man/MKFIFO/1/markdown)                                   User Commands                                  [MKFIFO(1)](https://www.chedong.com/phpMan.php/man/MKFIFO/1/markdown)



## 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
              set file permission bits to MODE, not a=rw - umask

### -Z

       **--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)](https://www.chedong.com/phpMan.php/man/mkfifo/3/markdown)

       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)](https://www.chedong.com/phpMan.php/man/MKFIFO/1/markdown)
