macos snippets

"netstat | grep LISTEN" for MacOS

Tagged listen, macos, netstat, osx  Languages bash

Add this alias to your shell to get the equivalent output of running “netstat | grep LISTEN” on Linux:

alias netstat-listen='lsof -iTCP -sTCP:LISTEN'