challenge-accepted-sm

mtr only showing the last hop on macOS

Some Reddit users have noticed that recently, mtr stopped showing all hops using the default incantation. Alvin Alexander has a long series of in-depth posts on customizing bash on macOS but for the purpose of cutting to the chase here is a handy solution.

Presuming you already have mtr installed via brew (or your other favorite method) you’ll want to create an alias for a more verbose mtr command: 

nano ~/.bash_profile

Add the following line:

alias mtr="sudo mtr --first-ttl 3"

Save and exit the file, then load the profile into your system:

source ~/.bash_profile

Then try it out!

mtr google.com

You will be asked for your password as mtr requires sudo permissions. Enter it and you should once again see all the hops between you and your destination.

Would you like to post a comment?

Your email address will not be published. Required fields are marked *