Bird
0
0

Which command correctly lists all files including hidden ones in Linux?

easy📝 Syntax Q3 of 15
Linux CLI - File and Directory Operations
Which command correctly lists all files including hidden ones in Linux?
Als -h
Bls -r
Cls -a
Dls -l
Step-by-Step Solution
Solution:
  1. Step 1: Recall ls command options

    The option '-a' shows all files including hidden (dot) files.
  2. Step 2: Compare other options

    '-h' shows sizes human-readable, '-r' reverses order, '-l' lists details but not hidden files.
  3. Final Answer:

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

    List all files command = B [OK]
Quick Trick: Use ls -a to see hidden files too [OK]
Common Mistakes:
  • Using ls -h to list hidden files
  • Confusing -r with showing hidden files
  • Assuming ls -l shows hidden files

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes