Challenge - 5 Problems
Network Diagnostics Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2:00remaining
What is the output of the ping command?
You run the command
ping -c 3 8.8.8.8 on a Linux terminal. What output do you expect to see?Linux CLI
ping -c 3 8.8.8.8
Attempts:
2 left
💡 Hint
Think about what a successful ping to a public DNS server looks like.
✗ Incorrect
The ping command sends ICMP echo requests. If the host is reachable, it replies and shows statistics with packets transmitted and received.
💻 Command Output
intermediate2:00remaining
What does traceroute show about network paths?
You run
traceroute example.com. What does the output primarily show?Linux CLI
traceroute example.com
Attempts:
2 left
💡 Hint
Traceroute helps you see the path your data takes.
✗ Incorrect
Traceroute sends packets with increasing TTL to discover each hop on the path to the destination, showing latency per hop.
📝 Syntax
advanced2:00remaining
Which command correctly checks open ports on a host?
You want to check if port 80 is open on 192.168.1.1 using netcat (nc). Which command is correct?
Attempts:
2 left
💡 Hint
Use netcat to scan ports without sending data.
✗ Incorrect
The -z option scans without sending data, and -v enables verbose output. The other options are for listening or invalid.
🔧 Debug
advanced2:00remaining
Why does this ping command fail?
You run
ping -c 4 google.com but get the error: ping: unknown host google.com. What is the likely cause?Linux CLI
ping -c 4 google.comAttempts:
2 left
💡 Hint
The error means the hostname cannot be resolved.
✗ Incorrect
If DNS cannot resolve the hostname, ping cannot find the IP address to send packets.
🚀 Application
expert3:00remaining
What is the output of this complex network diagnostic script?
Consider this bash script that checks connectivity and logs results:
#!/bin/bash host=8.8.8.8 if ping -c 2 $host > /dev/null 2>&1; then echo "Host $host is reachable" else echo "Host $host is unreachable" fiWhat will be the output if the host is reachable?
Linux CLI
#!/bin/bash host=8.8.8.8 if ping -c 2 $host > /dev/null 2>&1; then echo "Host $host is reachable" else echo "Host $host is unreachable" fi
Attempts:
2 left
💡 Hint
The script uses ping and checks its success silently.
✗ Incorrect
The script runs ping quietly and prints reachable if ping succeeds, unreachable otherwise.