Bird
0
0

How do you correctly run sync.sh passing the arguments weekly and quiet?

hard🚀 Application Q9 of 15
Bash Scripting - Basics
How do you correctly run sync.sh passing the arguments weekly and quiet?
A./sync.sh "weekly quiet"
B./sync.sh weekly quiet
Csync.sh weekly,quiet
Dbash sync.sh -weekly -quiet
Step-by-Step Solution
Solution:
  1. Step 1: Understand argument passing

    Arguments are separated by spaces when running scripts.
  2. Step 2: Pass multiple arguments

    Use ./sync.sh weekly quiet to pass two separate arguments.
  3. Final Answer:

    ./sync.sh weekly quiet -> Option B
  4. Quick Check:

    Separate arguments by spaces when running scripts [OK]
Quick Trick: Separate script arguments with spaces [OK]
Common Mistakes:
MISTAKES
  • Passing multiple arguments as one quoted string
  • Using commas to separate arguments
  • Adding dashes when script does not expect options

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Bash Scripting Quizzes