Bird
0
0

You type ls /usr/bi and press Tab twice quickly. What is the expected behavior?

medium📝 Command Output Q5 of 15
Linux CLI - Navigating the File System
You type ls /usr/bi and press Tab twice quickly. What is the expected behavior?
AThe terminal lists all files in /usr starting with 'bi'
BThe terminal shows an error message
CThe command auto-completes to <code>ls /usr/bin/</code>
DNothing happens
Step-by-Step Solution
Solution:
  1. Step 1: Understand double Tab behavior

    Pressing Tab twice quickly after a partial path tries to complete or list matches.
  2. Step 2: Check if only one match exists

    /usr/bin is the only directory starting with 'bi', so it auto-completes to that.
  3. Final Answer:

    The command auto-completes to ls /usr/bin/ -> Option C
  4. Quick Check:

    Single match + double Tab = Auto-complete [OK]
Quick Trick: Double Tab shows matches or completes if one match [OK]
Common Mistakes:
MISTAKES
  • Expecting error on double Tab
  • Thinking nothing happens
  • Assuming multiple matches exist

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes