From cbdd4f40a49e15a9c130f644f276fc49c59c728f Mon Sep 17 00:00:00 2001 From: Tianxiang Xia <68173833+egretwAlker@users.noreply.github.com> Date: Thu, 16 May 2024 21:03:05 +0200 Subject: [PATCH] netstat: add osx page (#12793) Co-authored-by: K.B.Dharun Krishna --- pages/osx/netstat.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pages/osx/netstat.md diff --git a/pages/osx/netstat.md b/pages/osx/netstat.md new file mode 100644 index 0000000000..9888b1cf76 --- /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`