Bird
0
0

How can you narrow down the tab completion results?

hard📝 Application Q15 of 15
Linux CLI - Navigating the File System
You want to list all files starting with doc in a directory, but you only remember part of the filename. You type ls doc and press Tab twice but see too many options. How can you narrow down the tab completion results?
AUse the Up arrow key to see previous commands
BPress Ctrl+Z to pause the terminal
CRestart the terminal and try again
DType more characters after 'doc' before pressing Tab again
Step-by-Step Solution
Solution:
  1. Step 1: Understand how tab completion filters matches

    Typing more characters narrows down the possible matches for tab completion.
  2. Step 2: Apply this to the problem

    Adding more letters after 'doc' before pressing Tab reduces the list of files shown.
  3. Final Answer:

    Type more characters after 'doc' before pressing Tab again -> Option D
  4. Quick Check:

    More chars = fewer matches [OK]
Quick Trick: Add more letters before Tab to narrow matches [OK]
Common Mistakes:
MISTAKES
  • Pressing Ctrl+Z which suspends processes
  • Restarting terminal unnecessarily
  • Using Up arrow which recalls commands, not files

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes