Mkfifo - Named Pipes

With named pipes you can let processes interact through different shells. Other than that they work like the ’normal’ pipe.

Create Named Pipe

Create a new named pipe like so:

[tux@server]$ mkfifo mypipe

You can also specify permissions

[tux@server]$ mkfifo mypipe -m700

Connect different Shells

You can redirect the output of a command into a named pipe like you are used to on Linux.

[tux@server]$ ls -l > mypipe

You can access the pipe in a different shell like so

[tux@server]$ cat < mypipe
profile picture of the author

Jannik Rehkemper

I'm an professional Linux Administrator and Hobby Programmer. My training as an IT-Professional started in 2019 and ended in 2022. Since 2023 I'm working as an Linux Administrator.