Bird
0
0

Which of these is the correct syntax to list all files including hidden ones in a directory?

easy📝 Syntax Q12 of 15
Linux CLI - Navigating the File System
Which of these is the correct syntax to list all files including hidden ones in a directory?
Als -l
Bls -r
Cls -h
Dls -a
Step-by-Step Solution
Solution:
  1. Step 1: Recall option meanings for ls

    -a shows all files including hidden (those starting with a dot).
  2. Step 2: Match option to requirement

    Only ls -a lists hidden files; others do different things like long format or reverse order.
  3. Final Answer:

    ls -a -> Option D
  4. Quick Check:

    -a means all files [OK]
Quick Trick: Use -a to see hidden files starting with . [OK]
Common Mistakes:
  • Using -l instead of -a to see hidden files
  • Confusing -r (reverse) with -a
  • Thinking -h shows hidden files

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes