• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

mtr: command not found

by admin

The mtr utility is a combination of ping and traceroute, with additional improvements to enable testing of the quality of a network connection. Ping packets are sent to the destination in large groups, with mtr noting how long responses take to the packets.

The mtr command also takes note of lost packets, a symptom of a problem called packet drop or packet loss. This occurs when one or more packets sent from a source are unable to reach their intended destination. Packet loss can cause latency if the packets are queued for retransmission, or the data may not be successfully transmitted at all. A large number of lost packets are a strong indicator of a network issue along the path. By identifying that the issue exists, as well as where in the path it exists, mtr enables an administrator to find potentially failed networking components. The output of mtr identifies the percentage of packets along the path that are dropped, and one or more nodes in that path experiencing a high percentage of packet loss may be at fault.

Syntax

The syntax of the mtr command is:

# mtr [options] [hostname]

If you encounter the below error while running the mtr command:

mtr: command not found

you may try installing the below package as per your choice of distribution:

Distribution Command
OS X brew install mtr
Debian apt-get install mtr
Ubuntu apt-get install mtr
Alpine apk add mtr
Arch Linux pacman -S mtr
Kali Linux apt-get install mtr
CentOS yum install mtr
Fedora dnf install mtr
Raspbian apt-get install mtr

mtr Command Examples

1. Traceroute to a host and continuously ping all intermediary hops:

# mtr host

2. Disable IP address and host name mapping:

# mtr -n host

3. Generate output after pinging each hop 10 times:

# mtr -w host

4. Force IP IPv4 or IPV6:

# mtr -4 host

5. Wait for a given time (in seconds) before sending another packet to the same hop:

# mtr -i seconds host

6. Display the Autonomous System Number (ASN) for each hop:

# mtr --aslookup hostname

Filed Under: Linux

Some more articles you might also be interested in …

  1. Configuring sudo to Enable Commands for Non-Root Users in Linux
  2. CentOS / RHEL 6 : How to rebuild Initial Ramdisk Image
  3. kill Command Examples in Linux
  4. Audit rules to log reboot command executions in CentOS/RHEL
  5. quotaon command examples in Linux
  6. CentOS / RHE 7 : How to Prevent Users from Using the Last 10 Passwords
  7. firejail: command not found
  8. ansible-playbook: command not found
  9. pacstrap: command not found
  10. How to use auditd to monitor a file deletion in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • powertop Command Examples in Linux
  • powertop: command not found
  • powerstat: command not found
  • powerstat Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright