Challenge - 5 Problems
Ping Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate1:30remaining
What is the output of this ping command?
You run the command
ping -c 3 8.8.8.8 on a Linux terminal. What will the output show?Linux CLI
ping -c 3 8.8.8.8
Attempts:
2 left
💡 Hint
The -c option limits the number of ping requests sent.
✗ Incorrect
The -c 3 option tells ping to send exactly 3 packets and then stop, showing replies and timing info.
💻 Command Output
intermediate1:30remaining
What error does this ping command produce?
What error message appears when running
ping -c three 8.8.8.8?Linux CLI
ping -c three 8.8.8.8Attempts:
2 left
💡 Hint
The -c option expects a number, not a word.
✗ Incorrect
The -c option requires a numeric argument. Using 'three' causes an invalid count error.
📝 Syntax
advanced1:30remaining
Which ping command syntax correctly sends 5 packets to example.com?
Choose the correct ping command to send exactly 5 packets to example.com.
Attempts:
2 left
💡 Hint
The standard option to specify count is -c followed by a number.
✗ Incorrect
The correct syntax is 'ping -c 5 example.com'. Other options are invalid or for different OS.
🚀 Application
advanced2:00remaining
How to automate ping to check connectivity every 10 seconds for 1 minute?
You want to check if google.com is reachable every 10 seconds for 1 minute using ping. Which command achieves this?
Attempts:
2 left
💡 Hint
The -i option sets interval between packets, -c sets count.
✗ Incorrect
Sending 6 packets (-c 6) every 10 seconds (-i 10) totals about 1 minute.
🧠 Conceptual
expert1:30remaining
What does the ping command's exit status indicate?
After running a ping command, what does an exit status of 0 mean?
Attempts:
2 left
💡 Hint
Exit status 0 usually means success in Linux commands.
✗ Incorrect
Ping returns 0 if it receives any reply packets, indicating connectivity.