Bird
0
0

Which of the following is the correct syntax to send exactly 4 ping requests to example.com?

easy📝 Syntax Q12 of 15
Linux CLI - Networking Commands
Which of the following is the correct syntax to send exactly 4 ping requests to example.com?
Aping example.com -c4
Bping -n 4 example.com
Cping -c 4 example.com
Dping example.com -count 4
Step-by-Step Solution
Solution:
  1. Step 1: Recall the option to limit ping count

    The -c option followed by a number limits the number of ping requests sent.
  2. Step 2: Check each option

    ping -c 4 example.com uses -c 4 correctly. ping -n 4 example.com uses -n which is Windows syntax. ping example.com -count 4 uses incorrect syntax. ping example.com -c4 misses a space between -c and 4.
  3. Final Answer:

    ping -c 4 example.com -> Option C
  4. Quick Check:

    Use -c for count in Linux ping [OK]
Quick Trick: Use '-c' to set ping count in Linux [OK]
Common Mistakes:
  • Using Windows ping options like -n
  • Missing space between option and number
  • Using incorrect option names

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes