In the Windows I can use the pathping command to tail after the network path, but I can not find this command on macOS.

Is it has another name, such as ipconfig to ifconfig?


In macOS Terminal, you can use traceroute for similar functionality.

There's also a nice GUI tool called Network Utility that you can use to trace a path of your network traffic (in this example I've traced www.apple.com):

enter image description here

In OS X Mavericks (10.9) and later, Network Utility is in /System/Library/CoreServices/Applications.

In OS X Mountain Lion (10.8), Lion (10.7), and Snow Leopard (10.6), Network Utility is in the Utilities folder of your Applications folder.

  • 1
    Just a heads up for the OP, tracert does not measure packet loss over time like pathping does. – mxmissile Oct 11 '18 at 17:49

The comparable command, mtr, can be installed with a package manager, such as Homebrew. After installing Homebrew, one can install the software as follows.

brew install mtr

If desired, one might also make an alias for pathping. For example, in BASH...

alias pathping='sudo /usr/local/sbin/mtr'

The familiar result is illustrated below.



You can also use the Terminal too.

traceroute <ip address>

Also you could do a ping too.

ping <ip address> 

Network Utility is nice in that it wraps all the utilities in one tool.

I'd guess that you could write a shell script which wraps both together which it sounds like pingpath does.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .