View open (listening) ports on MacOS


This command also works (as-is) on Linux.

bash sudo netstat -nap tcp | grep -i "listen" bash

source

Tags:  macos

Share: