netstat: use long argument format (#5252)

translation-badges
Axel Navarro 2021-02-18 20:16:29 -03:00 committed by GitHub
parent 49852ef289
commit 7a08da8173
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 12 deletions

View File

@ -1,6 +1,7 @@
# netstat
> 显示与网络相关的信息,如打开的连接、打开的套接字端口等.
> 更多信息: <https://www.unix.com/man-page/osx/1/netstat>.
- 列出所有端口:

View File

@ -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`

View File

@ -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: