Bird
0
0

Which of the following is the correct syntax for using the ls command to list all files including hidden ones?

easy📝 Syntax Q12 of 15
Linux CLI - Linux Basics and Terminal
Which of the following is the correct syntax for using the ls command to list all files including hidden ones?
Als -all
Bls a-
Cls -A
Dls -a
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct option syntax

    Options usually start with a dash (-) followed by a letter or word. '-a' is the standard option for showing all files.
  2. Step 2: Check common mistakes

    'a-' reverses the dash and letter, '-A' excludes . and .., '-all' is incorrect syntax.
  3. Final Answer:

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

    Options start with dash + letter [OK]
Quick Trick: Options start with dash (-) followed by letters [OK]
Common Mistakes:
MISTAKES
  • Reversing dash and option letter
  • Using -A which excludes . and ..
  • Using -all invalid syntax

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes