The "inode" in a Unix-like file system is used to:
2025
The "inode" in a Unix-like file system is used to:
- A.
Store the contents of the file
- B.
Store the file’s name and location
- C.
Store the attributes and metadata of the file
- D.
Store the directory structure of the file system
Attempted by 65 students.
Show answer & explanation
Correct answer: C
In a Unix-like file system, an inode stores metadata about a file, such as permissions, owner, size, timestamps, and pointers to the file’s data blocks. The file name is stored separately in a directory entry that maps the name to an inode number. Therefore, the inode is used to store the attributes and metadata of the file.