Bird
0
0

Why does ping -c 3 without a hostname fail?

medium📝 Debug Q7 of 15
Linux CLI - Networking Commands
Why does ping -c 3 without a hostname fail?
AThe command is correct and runs normally
BThe -c option is invalid
CPing needs root privileges
DHostname or IP is required for ping
Step-by-Step Solution
Solution:
  1. Step 1: Check ping command requirements

    Ping requires a target hostname or IP address to send packets.
  2. Step 2: Analyze the command given

    Without a hostname, ping cannot run and will show an error.
  3. Final Answer:

    Hostname or IP is required for ping -> Option D
  4. Quick Check:

    Ping needs target host = true [OK]
Quick Trick: Always provide hostname or IP with ping [OK]
Common Mistakes:
  • Omitting hostname
  • Thinking -c alone runs ping
  • Assuming root needed for ping

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes