Netstat

From wikinotes
Revision as of 16:39, 3 July 2020 by Will (talk | contribs) (→‎FreeBSD)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

netstat shows TCP ports and their TCP-state.

FreeBSD

netstat -an               # display netwk connections (listening, connected, etc)
netstat -4 -f inet -n -r  # display routing table