I want a command-line tool to inspect sockets, like ss for Linux, but for Mac. Is there a port of that tool, or another tool I could use for Mac OS systems?


The equivalent of ss for Mac OSX is netstat, part of Network Utility. See https://support.apple.com/en-us/HT202790

  • 8
    From netstat man page: This program is obsolete. Replacement for netstat is ss. Replacement for netstat -r is ip route. Replacement for netstat -i is ip -s link. Replacement for netstat -g is ip maddr. – emx May 16 '17 at 13:09
  • Your links busted. – slm Aug 8 '18 at 17:40
  • 2
    the netstat man page on OS X is different :) and doesn't say obsolete. lsof may be another option: apple.stackexchange.com/questions/157893/… – rogerdpack Oct 11 '18 at 20:08

Not the answer you're looking for? Browse other questions tagged or ask your own question.