1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-04 12:15:23 +02:00
tldr/pages/common/netstat.md
CleanMachine1 070b6a4366
netstat: add option placeholders (#16309)
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
2025-05-03 18:24:05 +03:00

33 lines
708 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]}}`