0
0
Linux CLIscripting~10 mins

Inodes concept in Linux CLI - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the command to list files with their inode numbers.

Linux CLI
ls -i [1]
Drag options to blanks, or click blank then click option'
A-a
B-l
C-h
D-R
Attempts:
3 left
💡 Hint
Common Mistakes
Using -l only shows detailed info but not hidden files.
Using -h is for human-readable sizes, not inode listing.
2fill in blank
medium

Complete the command to find the inode number of a file named 'example.txt'.

Linux CLI
ls -i [1]
Drag options to blanks, or click blank then click option'
Aexample.txt
B-l example.txt
C-R example.txt
D-a example.txt
Attempts:
3 left
💡 Hint
Common Mistakes
Adding -l or -a unnecessarily.
Using recursive -R when not needed.
3fill in blank
hard

Fix the error in the command to display inode numbers of all files in the current directory.

Linux CLI
ls [1]
Drag options to blanks, or click blank then click option'
A-l
B-i
C-a
D-h
Attempts:
3 left
💡 Hint
Common Mistakes
Using -l shows details but not inode numbers.
Using -h is for sizes, not inodes.
4fill in blank
hard

Fill both blanks to create a command that finds files with inode number 123456.

Linux CLI
find . -inum [1] -print[2]
Drag options to blanks, or click blank then click option'
A123456
B > output.txt
C 2>/dev/null
D -type f
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong inode number.
Not redirecting output when needed.
5fill in blank
hard

Fill all three blanks to create a command that lists inode numbers, file sizes, and names for all files.

Linux CLI
ls [1] [2] [3]
Drag options to blanks, or click blank then click option'
A-i
B-l
C-a
D-h
Attempts:
3 left
💡 Hint
Common Mistakes
Omitting -i so no inode numbers show.
Forgetting -h makes sizes easier to read.