Linux FIFO method

  
                

The FIFO pipeline is a file type. It is very easy to create a FIFO on Linux. The FIFO file has the inherent characteristics of the pipeline, but it has a certain difference from the pipe pipeline. The following small series will give a detailed introduction to the creation and use of the FIFO pipeline. So that you have a detailed understanding.

FIFO, also referred to as named pipes (named pipe), which is Linux system for inter-process communication is a method.

The difference between FIFO and pipe is:

The FIFO has a corresponding inode in the file system, which can be viewed by the ls command.

sh-3.2# ls -lhF . /fifo_file

100 prwxrwxrwx 1 root root 0 Jan 1 1970 . /fifo_file

Copyright © Windows knowledge All Rights Reserved