0
0
Linux CLIscripting~20 mins

Inodes concept in Linux CLI - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Inode Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
1: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
AThe inode number of each file
BThe file size in bytes
CThe file permissions
DThe last modification date
Attempts:
2 left
💡 Hint
Think about what uniquely identifies a file on disk besides its name.
💻 Command Output
intermediate
1: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
AThey are duplicate files with different content
BThey are hard links pointing to the same file content
CThey are symbolic links to different files
DThey are files with the same name but different extensions
Attempts:
2 left
💡 Hint
Inodes identify file data, not just names.
📝 Syntax
advanced
2: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.
Als -li
Bls -iF
Cls -lF
Dls -l -i -F
Attempts:
2 left
💡 Hint
Combine options to get inode, long listing, and file type.
🔧 Debug
advanced
2: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?
AThe file has other hard links still pointing to the inode
BThe inode number is corrupted and not freed
CThe file is a symbolic link and not the actual data
DThe file permissions prevent freeing the inode
Attempts:
2 left
💡 Hint
Think about how many names can point to the same inode.
🧠 Conceptual
expert
2:30remaining
How does the inode structure help the filesystem manage files efficiently?
Select the best explanation of how inodes contribute to filesystem efficiency.
AInodes contain the full file path, so the system can find files without directory lookups
BInodes compress file data to save disk space and speed up access
CInodes store metadata separately from filenames, allowing multiple names to share data and quick access to file info
DInodes encrypt file contents to protect data security
Attempts:
2 left
💡 Hint
Think about what inodes store and how filenames relate to them.