cmdxray / commands / traceroute

What does traceroute do?

trace the network hops (routers) packets take to reach a host.

▸ Explain your own traceroute command →

traceroute examples, explained

$ traceroute example.com

  • traceroutetrace the network hops (routers) packets take to reach a host
  • example.coman argument passed to the command

$ traceroute -n -m 20 1.1.1.1

  • traceroutetrace the network hops (routers) packets take to reach a host
  • -nshow numeric addresses; don't resolve hop names via DNS
  • -mset the maximum number of hops (TTL) to probe
  • 20value for -m
  • 1.1.1.1an argument passed to the command

$ traceroute -T -p 443 host

  • traceroutetrace the network hops (routers) packets take to reach a host
  • -Tuse TCP SYN probes (handy through firewalls)
  • -puse this base destination port for probes
  • 443value for -p
  • hostan argument passed to the command

traceroute flags & options

-nshow numeric addresses; don't resolve hop names via DNS
-Iuse ICMP ECHO probes instead of UDP datagrams
-Tuse TCP SYN probes (handy through firewalls)
-mset the maximum number of hops (TTL) to probe
-qsend this many probe packets per hop (default 3)
-wwait this many seconds for a reply before giving up
-puse this base destination port for probes
-fstart probing from this first TTL (hop) instead of 1

Other commands

Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.