Trace the route to a host with `traceroute`

The classic forgotten-syntax command: `traceroute` shows every router between you and a destination plus the round-trip time of probes to each hop.

LinuxroutingnetworktracerouteDiagnosticsLow risk
Run `traceroute example.com` (or `traceroute -I example.com` for ICMP probes) to list each hop along the path with its response times.

01Command

Command
$ traceroute example.com

02What it does

traceroute works by sending packets with an increasing TTL, so each successive router answers with a 'time exceeded' message and reveals itself. Where the latency suddenly jumps tells you whether slowness is local, at your ISP, or further upstream. `* * *` for a hop means it didn't reply — often just a router that drops probes, not necessarily an outage.

03Risk

RiskLow risk
RequirementsRequires traceroute (apt install traceroute / dnf install traceroute); some distros ship tracepath instead
!Warning: Many networks filter default UDP probes; `-I` (ICMP) or `-T` (TCP, needs root) often works where the default shows stars.

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

Last verified: 2026-09-17 · Category: Network

06Related solutions