mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-12 02:47:34 +00:00
Update cheatsheets
This commit is contained in:
21
tldr/osx/netstat
Normal file
21
tldr/osx/netstat
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, osx]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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`
|
||||
Reference in New Issue
Block a user