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
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.Sign up to join this community
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
In OS X Mavericks (10.9) and later,
Network Utility is in
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.
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.