Challenge - 5 Problems
Inode Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate1:30remaining
What does the command
ls -i show?You run
ls -i in a directory. What is the output showing before each filename?Linux CLI
ls -i
Attempts:
2 left
💡 Hint
Think about what uniquely identifies a file on disk besides its name.
✗ Incorrect
The
ls -i command shows the inode number, which is a unique identifier for each file in the filesystem.💻 Command Output
intermediate1:30remaining
What happens when two filenames share the same inode number?
You find two files in the same directory with the same inode number using
ls -i. What does this mean?Linux CLI
ls -i
Attempts:
2 left
💡 Hint
Inodes identify file data, not just names.
✗ Incorrect
Files sharing the same inode number are hard links, meaning they point to the same data on disk.
📝 Syntax
advanced2:00remaining
Which command shows the inode number and file type in a long listing?
Choose the command that correctly lists files with inode numbers and file types.
Attempts:
2 left
💡 Hint
Combine options to get inode, long listing, and file type.
✗ Incorrect
The command
ls -l -i -F shows inode numbers (-i), long listing (-l), and file type indicators (-F).🔧 Debug
advanced2:00remaining
Why does deleting a file not free disk space immediately?
You delete a file but disk space does not increase. What inode-related reason explains this?
Attempts:
2 left
💡 Hint
Think about how many names can point to the same inode.
✗ Incorrect
If other hard links exist, the inode and data remain until all links are removed.
🧠 Conceptual
expert2:30remaining
How does the inode structure help the filesystem manage files efficiently?
Select the best explanation of how inodes contribute to filesystem efficiency.
Attempts:
2 left
💡 Hint
Think about what inodes store and how filenames relate to them.
✗ Incorrect
Inodes hold file metadata and point to data blocks, enabling multiple filenames (hard links) to share the same data and fast metadata access.