As someone who manages Linux systems, you know that the common belief is to blame all problems on the infrastructure, which is your area of responsibility. Network engineers, who you playfully call your "enemies", often tell you, "It's not a network problem." Hearing those words can be frustrating because it means the focus shifts to you, your operating systems, and your hardware. Instead of relying on the word of the network engineers, you can proactively check the network yourself.
The mtr tool allows you to do this without bothering anyone else or getting involved in a troubleshooting meeting. The mtr command is a simple but useful tool for analyzing and troubleshooting networks. This brief explanation will help you get started.
Why MTR command?
You might be wondering why I'm writing about a tool called "My Traceroute" (mtr) when there are other tools like traceroute, ping, netstat, and ip that can also help with checking network connections. Well, mtr is a bit different. It is similar to the top command because it updates itself automatically and shows you live information about how the network is responding and if you are connected.
Benefits of MTR
1. Live Network Monitoring : MTR constantly refreshes and shows you real-time information about your network connection. This helps you quickly see if there are any issues or delays.
2. Traceroute Plus Ping : MTR combines the features of traceroute (showing the path packets take) and ping (checking if a host is reachable). This gives you more useful details in one tool.
3. Easy to Read Output : The MTR output is nicely formatted and color-coded, making it easy to understand the network status at a glance.
4. Safe to Use : Running MTR does not make any changes or cause damage to your system or network. It simply checks connectivity.
5. Available on Linux : MTR comes pre-installed on many Linux distributions, or can be easily installed via package managers.
Overall, MTR is a simple yet powerful tool that helps you quickly troubleshoot and monitor network issues, without needing advanced knowledge or risking system harm.
Installation of MTR
If you do not have mtr, which is found in /usr/sbin, get it the normal way with YUM or DNF. The mtr command is part of the base collection. you can use the below command to download mtr.
Command :
sudo apt -y install mtr
Output :

Usage of MTR
The mtr command is easy to use. There are many options for using mtr, but these are the most useful for my environment. Feel free to explore all of mtr's options. You cannot damage your system or anyone else's system with this command. The mtr command does not create security problems for you, so use it freely.
1. IPv4
My favorite way to use mtr is with the 'IPv4 only' option (-4). The output will only show IPv4 addresses. This option does not stop DNS lookups. In other words, if the host has a name, you will probably see the DNS name rather than just the IPv4 address. Since mtr updates in real-time, the following video shows better how it works.
Command :
mtr -4 geeksforgeeks.org
Output :
2. IPv6
On my system it looks like the IPv6 is the normal option which I do not want. So I always choose the IPv4 instead of IPv6.
Command :
mtr geeksforgeeks.org
Output :
Conclusion
The mtr tool is helpful for seeing if there are problems with your network connections. It shows live updates so you can easily see if things are working well or not. The mtr command is safe to use and will not cause any damage. It is a good tool for checking network issues yourself without needing to ask others for help right away. Give mtr a try next time you suspect network troubles.
Similar Reads
untar Command in Linux
The tar command is one of the most essential tools in Linux for compressing and extracting files. While there isn't an actual untar command, this is common term in the Linux world, referring to the process of extracting files and directories from a tar archive. If youâve ever downloaded software or
4 min read
RPM Command in Linux
The RPM (Red Hat Package Manager) command is a fundamental tool in the world of Linux package management. It is widely used in Red Hat-based distributions like Fedora and CentOS, as well as other RPM-based distributions. The RPM command allows users to install, query, verify, and manage software pac
6 min read
talk command in linux
In Linux, there are commands like write/wall which are used to communicate with other users especially by system administrators to send a short message to all logged-in users. There is one more command talk which is like an instant messenger service that enables two users to chat. In this article, w
3 min read
ls Command in Linux
The ls command is one of the most used commands in the Linux terminal to display the files and directories or path in the terminal. So, using the ls command is a basic skill for navigating the Linux file system, handling files, and managing directories. What is the ls Command in LinuxThe ls command
10 min read
Telnet Command in Linux
Telnet serves as a command line interface (CLI) tool that allows logging in and communication with a system through a TCP/IP network. Users can issue commands on a remote machine as Telnet users can log into a machine over a TCP/IP network with the use of Telnet addresses (e.g. telnet://user@hostnam
7 min read
Netstat command in Linux
The netstat command is like a special tool in Linux that helps you understand and check things about how your computer connects to the internet. It can tell you about the connections your computer is making, the paths it uses to send information, and even some technical details like how many packets
7 min read
Unzip Command in Linux
As an open-source operating system, Linux presents plenty of powerful and versatile instructions for dealing with files and directories. One such command that performs an important role in coping with compressed files is the "unzip" command. Compressed files are a common way to keep space and share
8 min read
Fun Commands in Linux
Linux isn't just for coding and administrationâit can also be a lot of fun. With a variety of terminal commands, you can add some entertainment to your Linux experience. Below is a list of some cool and fun commands you can use in Linux to enhance your terminal experience. Weâll also cover how to in
4 min read
Linux Commands
Linux commands are essential for controlling and managing the system through the terminal. This terminal is similar to the command prompt in Windows. Itâs important to note that Linux/Unix commands are case-sensitive. These commands are used for tasks like file handling, process management, user adm
15+ min read
fuser command in Linux
fuser is a command line utility in Linux. fuser can identify the process using the files or sockets. This command can be also used to kill the process. In this article, we are going to see how to use the fuser command to list the processes and kill the processes associated with files and directories
4 min read