commands.sh

mkfifo

all

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

More info →

Options (1)

-f, --flushboolean

Share your terminal session in real-time

Example: mkfifo {{path/to/pipe}}; script {{[-f|--flush]}} {{path/to/pipe}}

Examples (4)

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
made by @shridhargupta | data from tldr-pages