netstat
Display network-related information such as open connections, open socket ports, etc. See also: lsof. More information: https://keith.github.io/xcode-man-pages/netstat.1.html.
lsof
netstat -p {{protocol}}
netstat -nr
netstat -nr -f inet