Intermediate Package: traceroute

traceroute

Show the network path (hop by hop) to a destination.

Syntax

traceroute [options] destination

Description

traceroute reveals every router (hop) a packet passes through on its way to a destination and the round-trip time to each, which is invaluable for isolating where a connectivity or latency problem is occurring.

Examples

traceroute example.com
Trace the route to a host using UDP probes
traceroute -I example.com
Use ICMP probes instead of UDP
mtr example.com
A continuously-updating alternative combining ping and traceroute
On RHEL-based systems traceroute may need installing separately; tracepath is available by default.

Applies to

Ubuntu Debian Linux Mint RHEL CentOS / Rocky / AlmaLinux Fedora Arch Linux openSUSE Alpine Linux