Search code examples
linuxsocketspipeinode

creating inode while creating pipe, fifo or socket


I have general question about Linux. Will the inode be created if I create a fifo? pipe? socket?


Solution

  • No inode will be created for an anonymous pipe or a socket, as an inode is a property of a filesystem and neither of these two lives as a filesystem entity (they don't have a file path). They only have file descriptors.

    However, for named pipes (aka fifo) an inode is created as it lives as an filesystem entity.