Welcome to the Linux Foundation Forum!

Question 5.5

Hi Is the answer false? I ask AI, it says the answer should be false:

The statement:

"The file name is contained in the directory inode."

is false.


Explanation

  • Inodes in Unix-like file systems contain metadata about files and directories (such as permissions, ownership, timestamps, and pointers to data blocks), but not the file name.
  • File names are stored in the directory entries (which are themselves files), which map file names to inode numbers.
  • The directory's inode contains information about the directory itself (like permissions and ownership), not about the names of the files it contains.

So, the file name is not contained in the inode—it is contained in the directory entry that points to the inode.


Summary:

The file name is not contained in the inode.
The statement is false.

Categories

Upcoming Training