Bird
0
0

Which of these is the correct way to run a command with an option in Bash?

easy📝 Syntax Q12 of 15
Linux CLI - Linux Basics and Terminal
Which of these is the correct way to run a command with an option in Bash?
Als -ll
Bls -l -
Cls l-
Dls -l
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct option syntax

    Options start with a dash (-) followed by letters, so '-l' is correct.
  2. Step 2: Check each option

    A: 'ls -l' is correct. B has extra dash, C has wrong order, D uses '-ll' which repeats the option unnecessarily.
  3. Final Answer:

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

    Options start with dash and letter [OK]
Quick Trick: Options start with dash (-) followed by letters [OK]
Common Mistakes:
MISTAKES
  • Adding extra dash after options
  • Writing options without dash
  • Combining options incorrectly

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes