Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

mkfifo

v0.13.0
mkfifo [OPCIÓN]... NOMBRE...

Crear un FIFO con el nombre dado.

Options

--mode=<MODE>, -m <MODE>

file permissions for the fifo

-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

Examples

Crea un pipe nombrado en una ruta específica:

mkfifo {{ruta/al/pipe}}

Envía datos a través de un pipe nombrado ejecutando el comando en segundo plano:

echo "{{Hola Mundo}}" >{{ruta/al/pipe}} &

Recibe datos a través de un pipe nombrado:

cat {{ruta/al/pipe}}

Comparte tu sesión de la terminal en tiempo real:

mkfifo {{ruta/al/pipe}}; script {{[-f|--flush]}} {{ruta/al/pipe}}

The examples are provided by the tldr-pages project under the CC BY 4.0 License.

Please note that, as uutils is a work in progress, some examples might fail.