Forrest logo
back to the mtr tool

mtr:tldr:f0bf5

mtr: Generate output after pinging each hop 10 times.
$ mtr -w ${host}
try on your machine

The command "mtr -w ${host}" is used to execute the MTR (My Traceroute) tool with the specified "host" parameter.

Here's a breakdown of the command:

  • "mtr" is the command to launch the MTR tool. MTR is a network diagnostic tool that combines the functionality of both traceroute and ping.

  • "-w" is an option/flag that stands for "report destination unreachable". When specified, it tells MTR to report when a destination is unreachable, providing additional information for troubleshooting purposes.

  • "${host}" is a placeholder for the actual hostname or IP address you would like to run the MTR against. You need to replace "${host}" with the specific host you want to trace the network path towards.

Once executed, MTR will start sending packets to the specified host, displaying the network path they take along with various statistics like latency, packet loss, and hop-by-hop round-trip times. It helps in diagnosing network connectivity issues and understanding the network performance between your system and the target host.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the mtr tool