diff --git a/pages/osx/netstat.md b/pages/osx/netstat.md new file mode 100644 index 000000000..9888b1cf7 --- /dev/null +++ b/pages/osx/netstat.md @@ -0,0 +1,16 @@ +# netstat + +> Display network-related information such as open connections, open socket ports, etc. +> More information: . + +- 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`