mtr
Network diagnostic tool that combines traceroute and ping, showing running per-hop statistics along the path to a destination host.
mtr is a network diagnostic tool that combines the functionality of traceroute and ping in a single program. Given a destination hostname or IP address, it investigates the network connection between the local host and that destination.
It sends probes with successively larger time-to-live values and uses the responses from intervening routers to discover and measure the path. While running, it prints continuously updated statistics for each hop. The README notes that routers may be configured to never send these ICMP responses or to rate-limit them, so apparent loss at an intermediate hop does not always mean forwarded traffic is being lost there.
Usage is sudo ./mtr <host> after building. The helper binary mtr-packet must be suid-root because it needs raw IP sockets. Builds from git use ./bootstrap.sh && ./configure && make; release tarballs use ./configure && make. A GTK front end is optional (./configure --without-gtk). Solaris requires GNU make, and macOS needs no special steps. On Windows, mtr runs under WSL, or it can be built under Cygwin. It is aimed at network administrators, SREs, and developers troubleshooting latency and packet loss along a route. It is licensed under GPL v2.
Installation
# via apt (WSL on Windows)
sudo apt-get -y install mtr
# via Build from git
./bootstrap.sh && ./configure && make
# via Build from tarball
./configure && make
Alternatives & related tools
weechat
Terminal-based chat client with modular plugin architecture and multi-protocol support, primarily for IRC
irssi
Terminal-based IRC client with modular architecture and support for multiple chat protocols
elinks
Text-based web browser with frame/table support, scripting, and extensive customization options
ttyd
Command-line tool that shares a terminal command over the web, served via libuv and rendered in the browser with WebGL2, with SSL and basic auth.
Nmap
Network scanner for host discovery, port scanning, service and OS detection, with a scripting engine (NSE) for extra checks.
add a badge to your README
Maintain mtr? Show that it's featured on trmn. The badge links back to this page.
[](https://www.trmn.sh/tools/mtr?utm_source=badge)<a href="https://www.trmn.sh/tools/mtr?utm_source=badge"><img src="https://www.trmn.sh/badge/mtr.svg" alt="Featured on trmn" height="20"></a>