March 08, 2018

The contents of inode

❑ inode : This is a data structure used in Unix/Linux file system. Each file has its own inode, and the inode stores property about the file.
* About 1% of the total space of the file system is used for inodes. When this space is full, no more files can be created(df -i).

❑ The contents of inode(POSIX)(64 Bytes)
ContentDescription
File modeFile's permission(drwxrwxrwx)(2 Bytes).
Number of linksNumber of Hard links.
User IDUID of the file.
Group IDGID of the file.
Device IDDetermining the scope to which the serial number can be identified.
File pathAddress of the file.
Access timeA timestamp value.
Modify timeA timestampt value.
Change timeA timestamp value(More info - Link).
File sizeByte unit.
Serial numberUnique ID of the file for identification purpose(inode number).
I/O block sizeThe size of the configured I/O block.
Allocated blocksThe number of blocks allocated to this file.