Named pipe
In computing, a named pipe (also known as a FIFO for its behavior) is an extension of the traditional pipe concept on Unix and Unix-like systems, and is one of the methods of inter-process communication (IPC).[src] The concept is also found in the OS/2 and Microsoft Windows operating systems, although the programming semantics differ substantially.[src] A traditional pipe is "unnamed" and lasts only as long as the process.[src] A named pipe, on the other hand, can last as long as the system is up, beyond the life of the process, and can be deleted if no longer used.[src] Usually a named pipe appears as a file, and generally processes attach to it for inter-process communication (IPC).[src]
In computing, a named pipe (also known as a FIFO for its behavior) is an extension of the traditional pipe concept on Unix and Unix-like systems, and is one of the methods of inter-process communication (IPC).[src] The concept is also found in the OS/2 and Microsoft Windows operating systems, although the programming semantics differ substantially.[src] A traditional pipe is "unnamed" and lasts only as long as the process.[src] A named pipe, on the other hand, can last as long as the system is up, beyond the life of the process, and can be deleted if no longer used.[src] Usually a named pipe appears as a file, and generally processes attach to it for inter-process communication (IPC).[src] mkfifo my_pipe gzip -9 -c out.gz & In a separate process, independently, one could send the data to be compressed: cat file > my_pipe At the point the second shell opens for writing in the process that will run , the read-only opening by the first shell is unblocked and both and are then executed concurrently one feeding data to the other through the pipe.[src] The named pipe can be deleted just like any file: rm my_pipe A named pipe can be used to transfer information from one application to another without the use of an intermediary temporary file.[src] For example, you can pipe the output of gzip into a named pipe (here out.gz is from above example but it can be any gz): mkfifo -m 0666 /tmp/namedPipe gzip -d /tmp/namedPipe Then load the data being decompressed on the fly into a MySQL table like so: LOAD DATA INFILE '/tmp/namedPipe' INTO TABLE tableName; Without this named pipe, one would need to write out the entire uncompressed version of file.gz before loading it into MySQL.[src] Writing the temporary file is time-consuming, and results in more I/O usage and less free space on the hard drive.[src] PostgreSQL's command line utility, psql , also supports loading data from named pipes.[src] ==References== ==External links== Linux Interprocess Communications: Named Pipes (Linux Documentation Project, 1996) Introduction to Named Pipes (Linux Journal, 1997)[src]
16 sentences · 16 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Named pipe." encyclopegia.org, 2026, https://encyclopegia.org/wiki/named-pipe. Accessed 28 November 2026.
Chicago
"Named pipe." encyclopegia.org. Accessed November 28, 2026. https://encyclopegia.org/wiki/named-pipe.
APA
encyclopegia.org. (2026). Named pipe. Retrieved November 28, 2026, from https://encyclopegia.org/wiki/named-pipe
Accessed November 28, 2026 · CC BY-SA 4.0 · citation page · JSON