diff --git a/pages.zh/osx/netstat.md b/pages.zh/osx/netstat.md index 9801964da2..53f5809333 100644 --- a/pages.zh/osx/netstat.md +++ b/pages.zh/osx/netstat.md @@ -1,6 +1,7 @@ # netstat > 显示与网络相关的信息,如打开的连接、打开的套接字端口等. +> 更多信息: . - 列出所有端口: diff --git a/pages/linux/netstat.md b/pages/linux/netstat.md index 51a65aacc5..0a55008426 100644 --- a/pages/linux/netstat.md +++ b/pages/linux/netstat.md @@ -1,35 +1,32 @@ # netstat > Displays network-related information such as open connections, open socket ports, etc. +> More information: . - 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` diff --git a/pages/osx/netstat.md b/pages/osx/netstat.md index d8e3aadf3a..279542e800 100644 --- a/pages/osx/netstat.md +++ b/pages/osx/netstat.md @@ -1,6 +1,7 @@ # netstat > Displays network-related information such as open connections, open socket ports, etc. +> More information: . - List all ports: