1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 15:02:07 +02:00
tldr/pages/osx/netstat.md
Tianxiang Xia cbdd4f40a4
netstat: add osx page (#12793)
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2024-05-16 21:03:05 +02:00

431 B

netstat

Display network-related information such as open connections, open socket ports, etc. More information: https://keith.github.io/xcode-man-pages/netstat.1.html.

  • Display the PID and program name listening on a specific protocol:

netstat -p {{protocol}}

  • Print the routing table and do not resolve IP addresses to hostnames:

netstat -nr

  • Print the routing table of IPv4 addresses:

netstat -nr -f inet