1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 04:22:08 +02:00
tldr/pages/common/netstat.md
2024-10-14 21:54:42 +02:00

33 lines
641 B
Markdown

# netstat
> Display network-related information such as open connections, open socket ports, etc.
> See also: `ss`.
> More information: <https://manned.org/netstat>.
- List all ports:
`netstat --all`
- List all listening ports:
`netstat --listening`
- List listening TCP ports:
`netstat --tcp`
- Display PID and program names:
`netstat --program`
- List information continuously:
`netstat --continuous`
- List routes and do not resolve IP addresses to hostnames:
`netstat --route --numeric`
- List listening TCP and UDP ports (+ user and process if you're root):
`netstat --listening --program --numeric --tcp --udp --extend`