Bird
0
0

You run ping -c 3 google.com but get the error: ping: unknown option -c. What is the likely cause?

medium📝 Debug Q14 of 15
Linux CLI - Networking Commands
You run ping -c 3 google.com but get the error: ping: unknown option -c. What is the likely cause?
AYou are using a Windows command prompt instead of Linux terminal
BThe domain google.com does not exist
CYou forgot to add the IP address
DThe ping command is missing from your system
Step-by-Step Solution
Solution:
  1. Step 1: Understand the error message

    The error says '-c' is unknown, which is not typical in Linux but common in Windows ping.
  2. Step 2: Identify environment mismatch

    Windows ping uses '-n' for count, so running Linux-style ping with '-c' in Windows causes this error.
  3. Final Answer:

    You are using a Windows command prompt instead of Linux terminal -> Option A
  4. Quick Check:

    Windows ping uses -n, Linux uses -c [OK]
Quick Trick: Windows ping uses -n, Linux uses -c [OK]
Common Mistakes:
  • Assuming domain name error
  • Thinking IP address is mandatory
  • Believing ping command is missing

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes