Bird
0
0

Which command syntax correctly lists all files including hidden ones in a directory on a Linux server?

easy📝 Syntax Q3 of 15
Linux CLI - System Administration
Which command syntax correctly lists all files including hidden ones in a directory on a Linux server?
Als -a
Bls -l
Cls --help
Dls -r
Step-by-Step Solution
Solution:
  1. Step 1: Recall 'ls' command options

    'ls -a' lists all files including hidden (dot) files.
  2. Step 2: Compare options

    'ls -l' shows detailed list, 'ls --help' shows help, 'ls -r' reverses order.
  3. Final Answer:

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

    List all files including hidden = ls -a [OK]
Quick Trick: Use 'ls -a' to see hidden files [OK]
Common Mistakes:
  • Using 'ls -l' to show hidden files
  • Confusing help command with listing files
  • Using 'ls -r' for hidden files

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes