0
0
Linux CLIscripting~20 mins

traceroute for path tracing in Linux CLI - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Traceroute Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
1:30remaining
What is the output of this traceroute command?
You run the command traceroute -m 3 example.com. What does the -m 3 option do?
Linux CLI
traceroute -m 3 example.com
ASends 3 probes per hop instead of the default 1.
BSpecifies the port number 3 for traceroute packets.
CSets the timeout for each probe to 3 seconds.
DLimits the maximum number of hops to 3, so traceroute stops after 3 hops.
Attempts:
2 left
💡 Hint
Think about what 'max hops' means in network path tracing.
💻 Command Output
intermediate
1:30remaining
What does this traceroute output indicate?
You run traceroute example.com and see this output for the first hop:
 1  192.168.1.1  1.123 ms  1.045 ms  1.012 ms

What does this line mean?
Linux CLI
traceroute example.com
AThe first hop is the router at IP 192.168.1.1, and it responded in about 1 ms each time.
BThe traceroute failed to reach the first hop.
CThe IP 192.168.1.1 is unreachable.
DThe traceroute is showing the destination server's IP.
Attempts:
2 left
💡 Hint
The first hop is usually your local router or gateway.
🔧 Debug
advanced
1:30remaining
Why does this traceroute command fail with 'command not found'?
You type traceoute example.com but get bash: traceoute: command not found. What is the problem?
Linux CLI
traceoute example.com
AThe domain 'example.com' does not exist.
BYou need to run the command as root.
CThe command is misspelled; it should be 'traceroute'.
DTraceroute is not installed by default on Linux.
Attempts:
2 left
💡 Hint
Check the spelling carefully.
🚀 Application
advanced
2:00remaining
How to save traceroute output to a file for later analysis?
You want to run traceroute example.com and save the output to a file named trace.txt. Which command does this correctly?
AAll of the above
Btraceroute example.com >> trace.txt
Ctraceroute example.com > trace.txt
Dtraceroute example.com | tee trace.txt
Attempts:
2 left
💡 Hint
Think about how output redirection and tee work.
🧠 Conceptual
expert
2:00remaining
What does an asterisk (*) mean in traceroute output?
In traceroute output, sometimes you see lines like:
 4  * * *

What does this mean?
AThe network is blocking traceroute packets permanently.
BThe probe timed out; no response was received from that hop.
CTraceroute completed successfully at this hop.
DThe hop is the destination server.
Attempts:
2 left
💡 Hint
Think about what no response means in network tracing.