Use the MTR command in Linux to view the traceroute report for a remote machine. As a network administrator, you need to learn the usage of mtr command to Diagnosing Network issues.
MTR command is a powerful tool to diagnose and isolate networking errors and provide reports of the network.
Table of Contents
Install MTR command in Linux
Ubuntu/Debian
sudo apt update && apt upgrade
sudo apt install mtr-tiny
CentOS/RHEL/Fedora
sudo yum update
sudo yum install mtr
macOS
brew install mtr
The Syntax mtr command
$ mtr [domainName/IP]
Example
[vagrant@DevopsRoles ~]$ mtr devopsroles.com
The output as below

How to view hostnames and numeric IP addresses
[vagrant@DevopsRoles ~]$ mtr -b google.com
The output as picture below

Enable Report Mode
[vagrant@DevopsRoles ~]$ mtr -r -c 10 google.com >mtr-report-google
The output report as below

Conclusion
MTR commands a network diagnostic tool. More information “$ man mtr” command in Linux. Thank you for reading theΒ DevopsRolesΒ page!