1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-15 05:15:24 +02:00
tldr/pages/common/netstat.md
2025-07-04 20:54:20 +05:30

33 lines
712 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 {{[-a|--all]}}`
- List all listening ports:
`netstat {{[-l|--listening]]}}`
- List listening TCP ports:
`netstat {{[-t|--tcp]]}}`
- Display PID and program names:
`netstat {{[-p|--program]}}`
- List information continuously:
`netstat {{[-c|--continuous]}}`
- List routes and do not resolve IP addresses to hostnames:
`netstat {{[-rn|--route --numeric]}}`
- List listening TCP and UDP ports (+ user and process if you're root):
`netstat {{[-tulpne|--tcp --udp --listening --program --numeric --extend]}}`