netstat

Display network-related information such as open connections, open socket ports, etc. See also: lsof for listing network connections, including listening ports. More information: https://keith.github.io/xcode-man-pages/netstat.1.html.

netstat -p {{protocol}}

netstat -nr

netstat -nr -f inet