macos snippets
"netstat | grep LISTEN" for MacOS
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'
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'