Bird
0
0

Which of the following commands will display inode numbers alongside filenames in the current directory?

easy📝 Syntax Q3 of 15
Linux CLI - Disk and Storage
Which of the following commands will display inode numbers alongside filenames in the current directory?
Astat *
Bls -l
Cls -i
Dfind . -name '*'
Step-by-Step Solution
Solution:
  1. Step 1: Identify command for inode display

    The 'ls -i' command lists files with their inode numbers.
  2. Step 2: Differentiate from other commands

    'ls -l' shows detailed info but not inode; 'stat *' shows inode but for each file separately; 'find' lists files but not inode by default.
  3. Final Answer:

    ls -i -> Option C
  4. Quick Check:

    Use 'ls -i' to see inode numbers [OK]
Quick Trick: Use 'ls -i' to list inode numbers [OK]
Common Mistakes:
  • Using 'ls -l' expecting inode numbers
  • Confusing 'stat' output with 'ls -i'
  • Using 'find' without inode options

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes