FIFO in Linux - Named Pipe in Linux with Example

Опубликовано: 07 Апрель 2026
на канале: Professional Training Institute
9,989
89

FIFO is the named pipe in Linux, which is used for IPC - Inter process communication. We are having another IPC mechanism which is called PIPE. In pipe we are only able to communicate within relative process, that means either parent will communicate with child or child will communicate with parent.
But this limitation is the major concern for actual practical scenario, where we need to communicate with independent process. In such case we have to use name PIPE called FIFO.

We have to create FIFO file using mknod system call, in this system call we have to pass the name of FIFO file name/path, Flags - flags are normally to say we want to create FIFO file and also we want to read write access to the root and user.

once FIFO file created then we can open file using open system call and either we can read or we can write using respective system calls.
we should not forget to close file after use.

Here is professional training institute we are highly focusing on the practical Linux training, which is completely hands on. We are having periodically batch is starting online for Linux internal and Linux Device driver. We are the best Linux Device Driver training institute in India. For more information visit www.ptinstitute.in or call us on +91 8951 422 196.