File Descriptor and Inode in Linux
What is a File Descriptor? A file descriptor is a unique identifier assigned by the operating system to each open file, socket, pipe, or other I/O resource within a process. It is represented as a non-negative integer and serves as a reference to the underlying file or resource. File descriptors are managed by the kernel …