System Management

An administrator runs stat on a file on an ext4 filesystem. The output lists the inode number, owner, permissions, size and timestamps. The administrator wants to know where the filename itself is recorded. Which answer is correct?

Show the answer

Correct answerA. In a directory entry that maps the name to an inode

A filename lives in a directory entry that maps the name to an inode number; the inode holds metadata such as owner, permissions, size, timestamps and block pointers. The inode does not store the name, which is why one inode can have several names.