Bird
0
0

What will be the output of the command ping -c 2 127.0.0.1?

medium📝 Command Output Q13 of 15
Linux CLI - Networking Commands
What will be the output of the command ping -c 2 127.0.0.1?
ATwo ping requests sent to the local machine with reply times
BError: Unknown host 127.0.0.1
CPing command runs indefinitely
DNo output, command silently exits
Step-by-Step Solution
Solution:
  1. Step 1: Understand the IP address 127.0.0.1

    This IP is the loopback address, meaning the local machine itself.
  2. Step 2: Analyze the command with '-c 2'

    The command sends exactly 2 ping requests to the local machine and shows reply times.
  3. Final Answer:

    Two ping requests sent to the local machine with reply times -> Option A
  4. Quick Check:

    Ping 127.0.0.1 sends replies locally [OK]
Quick Trick: 127.0.0.1 is local machine, ping replies shown [OK]
Common Mistakes:
  • Thinking 127.0.0.1 is unreachable
  • Expecting infinite ping without -c
  • Assuming no output is normal

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes