Scroll to navigation

MKFIFO(1) General Commands Manual MKFIFO(1)

NAME

mkfifo - Create a FIFO with the given name.

SYNOPSIS

mkfifo [-m|--mode] [-Z ] [--context] [-h|--help] [-V|--version] [fifo]

DESCRIPTION

Create a FIFO with the given name.

OPTIONS

file permissions for the fifo
set the SELinux security context to default type
like -Z, or if CTX is specified then set the SELinux or SMACK security context to CTX
Print help
Print version

VERSION

v(uutils coreutils) 0.8.0

EXAMPLES

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

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.

2026-05-17