mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 00:22:09 +02:00
netstat: add osx page (#12793)
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
This commit is contained in:
parent
1e921fa0de
commit
cbdd4f40a4
1 changed files with 16 additions and 0 deletions
16
pages/osx/netstat.md
Normal file
16
pages/osx/netstat.md
Normal file
|
@ -0,0 +1,16 @@
|
|||
# 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`
|
Loading…
Add table
Reference in a new issue