mirror of https://github.com/CrimsonTome/tldr.git
netstat: use long argument format (#5252)
parent
49852ef289
commit
7a08da8173
|
@ -1,6 +1,7 @@
|
|||
# netstat
|
||||
|
||||
> 显示与网络相关的信息,如打开的连接、打开的套接字端口等.
|
||||
> 更多信息: <https://www.unix.com/man-page/osx/1/netstat>.
|
||||
|
||||
- 列出所有端口:
|
||||
|
||||
|
|
|
@ -1,35 +1,32 @@
|
|||
# netstat
|
||||
|
||||
> Displays network-related information such as open connections, open socket ports, etc.
|
||||
> More information: <https://man7.org/linux/man-pages/man8/netstat.8.html>.
|
||||
|
||||
- List all ports:
|
||||
|
||||
`netstat -a`
|
||||
`netstat --all`
|
||||
|
||||
- List all listening ports:
|
||||
|
||||
`netstat -l`
|
||||
`netstat --listening`
|
||||
|
||||
- List listening TCP ports:
|
||||
|
||||
`netstat -t`
|
||||
`netstat --tcp`
|
||||
|
||||
- Display PID and program names:
|
||||
|
||||
`netstat -p`
|
||||
`netstat --program`
|
||||
|
||||
- List information continuously:
|
||||
|
||||
`netstat -c`
|
||||
`netstat --continuous`
|
||||
|
||||
- List routes and do not resolve IP to hostname:
|
||||
- List routes and do not resolve IP addresses to hostnames:
|
||||
|
||||
`netstat -rn`
|
||||
`netstat --route --numeric`
|
||||
|
||||
- List listening TCP and UDP ports (+ user and process if you're root):
|
||||
|
||||
`netstat -lepunt`
|
||||
|
||||
- Print the routing table:
|
||||
|
||||
`netstat -nr`
|
||||
`netstat --listening --program --numeric --tcp --udp --extend`
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
# netstat
|
||||
|
||||
> Displays network-related information such as open connections, open socket ports, etc.
|
||||
> More information: <https://www.unix.com/man-page/osx/1/netstat>.
|
||||
|
||||
- List all ports:
|
||||
|
||||
|
|
Loading…
Reference in New Issue