1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-07 14:26:00 +02:00

netstat: use long argument format (#5252)

This commit is contained in:
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 # netstat
> 显示与网络相关的信息,如打开的连接、打开的套接字端口等. > 显示与网络相关的信息,如打开的连接、打开的套接字端口等.
> 更多信息: <https://www.unix.com/man-page/osx/1/netstat>.
- 列出所有端口: - 列出所有端口:

View file

@ -1,35 +1,32 @@
# netstat # netstat
> Displays network-related information such as open connections, open socket ports, etc. > 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: - List all ports:
`netstat -a` `netstat --all`
- List all listening ports: - List all listening ports:
`netstat -l` `netstat --listening`
- List listening TCP ports: - List listening TCP ports:
`netstat -t` `netstat --tcp`
- Display PID and program names: - Display PID and program names:
`netstat -p` `netstat --program`
- List information continuously: - 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): - List listening TCP and UDP ports (+ user and process if you're root):
`netstat -lepunt` `netstat --listening --program --numeric --tcp --udp --extend`
- Print the routing table:
`netstat -nr`

View file

@ -1,6 +1,7 @@
# netstat # netstat
> Displays network-related information such as open connections, open socket ports, etc. > 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: - List all ports: