1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/netstat.md

34 lines
641 B
Markdown
Raw Normal View History

2014-09-11 16:08:56 +05:30
# netstat
> Display network-related information such as open connections, open socket ports, etc.
2024-10-14 22:54:42 +03:00
> See also: `ss`.
> More information: <https://manned.org/netstat>.
2014-09-11 16:08:56 +05:30
- List all ports:
2014-09-11 16:08:56 +05:30
`netstat --all`
2014-09-11 16:08:56 +05:30
- List all listening ports:
2014-09-11 16:08:56 +05:30
`netstat --listening`
2014-09-11 16:08:56 +05:30
- List listening TCP ports:
2014-09-11 16:08:56 +05:30
`netstat --tcp`
2014-09-11 16:08:56 +05:30
- Display PID and program names:
2014-09-11 16:08:56 +05:30
`netstat --program`
2014-09-11 16:08:56 +05:30
- List information continuously:
2014-09-11 16:08:56 +05:30
`netstat --continuous`
2016-01-14 21:52:25 +08:00
- List routes and do not resolve IP addresses to hostnames:
2016-01-14 21:52:25 +08:00
`netstat --route --numeric`
- List listening TCP and UDP ports (+ user and process if you're root):
`netstat --listening --program --numeric --tcp --udp --extend`