netstat

打印网络连接,路由表,接口统计信息等,网络系统的状态信息,可让你得知整个Linux系统的网络情况

语法

  netstat [address_family_options] [--tcp|-t] [--udp|-u] [--raw|-w] [--listening|-l]
             [--all|-a] [--numeric|-n] [--numeric-hosts][--numeric-ports][--numeric-ports]
                [--symbolic|-N] [--extend|-e[--extend|-e]] [--timers|-o] [--program|-p]
                   [--verbose|-v] [--continuous|-c] [delay]

  netstat {--route|-r} [address_family_options] [--extend|-e[--extend|-e]]
             [--verbose|-v] [--numeric|-n] [--numeric-hosts][--numeric-ports][--numeric-ports]
                [--continuous|-c] [delay]

  netstat {--interfaces|-I|-i} [iface] [--all|-a] [--extend|-e]
             [--verbose|-v] [--program|-p] [--numeric|-n] [--numeric-hosts][--numeric-ports][--numeric-ports]
                [--continuous|-c] [delay]

  netstat {--groups|-g} [--numeric|-n] [--numeric-hosts][--numeric-ports][--numeric-ports]
             [--continuous|-c] [delay]

  netstat {--masquerade|-M} [--extend|-e] [--numeric|-n] [--numeric-hosts][--numeric-ports][--numeric-ports]
             [--continuous|-c] [delay]

  netstat {--statistics|-s} [--tcp|-t] [--udp|-u] [--raw|-w] [delay]

  netstat {--version|-V}

  netstat {--help|-h} 


  address_family_options:

  [--protocol={inet,unix,ipx,ax25,netrom,ddp}[,...]] [--unix|-x]
     [--inet|--ip] [--ax25] [--ipx] [--netrom] [--ddp]

Netstat打印有关Linux网络系统的信息.
打印的信息类型由第一个参数控制,如下所示:




 (none)         默认情况下, nnetstat显示打开的套接字列表。
                如果未指定任何地址族,则将
                打印所有已配置地址族的活动套接字
 --route , -r   显示内核路由表
 --groups , -g  显示IPv4和IPv6的多播组成员信息
 --interfaces=iface , -I=iface , -i
                显示所有网络接口或指定iface的表。
 --masquerade , -M
                显示伪装连接列表
 --statistics , -s
                显示每个协议的摘要统计信息

选项

 --verbose , -v   详细信息,特别是打印一些有关未配置的地址系列的信息
 --numeric , -n   直接使用ip地址,而不通过域名服务器

 --numeric-hosts  显示主机地址,但不影响端口或用户名的分辨率
 --numeric-ports  显示端口号,但不影响主机或用户名的分辨率
 --numeric-users  显示用户ID,但不影响主机名或端口名的分辨率
 --protocol=family , -A
                  列出该网络类型连线中的相关地址

 -c, --continuous 持续列出网络状态
 -e, --extend     显示网络其他相关信息
 -o, --timers    与网络计时器相关的信息

 -p, --program    显示每个Socket所属程序的PID和名称
 -l, --listening  仅显示侦听Socket
 -a, --all        显示所有连线中的Socket;

 -f               从FIB打印路由信息
 -c               从路由缓存中打印路由信息
 -Z --context     如果SELinux启用了打印SELinux上下文。
 -T --notrim      Stop trimming long addresses.

 delay            将在每个延迟秒内循环打印统计数据

>例子:

列出正在运行的程序和端口:
   
     $ sudo netstat tunapl

netstat 命令实例:

linux命令:netstat -tlpn -tlpn netstat netstat -tlpnrootopen.com
linux命令:netstat -tlpn -tlpn netstat netstat -tlpnrootopen.com
2019-06-05 22:25:21

linux命令:netstat -tlpn -tlpn netstat netstat -tlpnrootopen.com
linux命令:netstat -tlpn -tlpn netstat netstat -tlpnrootopen.com
2019-03-23 18:49:55

linux命令:netstat -plneu -plneu netstat netstat -plneurootopen.com
linux命令:netstat -plneu -plneu netstat netstat -plneurootopen.com
2018-09-11 09:55:30

linux命令:netstat -ant | awk '{print $NF}' | grep -v '[a-z]' | sort | uniq -c -c uniq | sort | '[a-z]' -v grep | $NF}' '{print awk | -ant netstat netstat -ant | awk '{print $NF}' | grep -v '[a-z]' | sort | uniq -crootopen.com
linux命令:netstat -ant | awk '{print $NF}' | grep -v '[a-z]' | sort | uniq -c -c uniq | sort | '[a-z]' -v grep | $NF}' '{print awk | -ant netstat netstat -ant | awk '{print $NF}' | grep -v '[a-z]' | sort | uniq -crootopen.com
2018-03-13 22:25:48

linux命令:netstat -plunt -plunt netstat netstat -pluntrootopen.com
linux命令:netstat -plunt -plunt netstat netstat -pluntrootopen.com
2018-04-02 00:00:48

linux命令:netstat -anp |grep 'tcp\|udp' | awk '{print $5}' | sed s/::ffff:// | cut -d: -f1 | sort | uniq -c | sort -n -n sort | -c uniq | sort | -f1 -d: cut | s/::ffff:// sed | $5}' '{print awk | 'tcp\|udp' |grep -anp netstat netstat -anp |grep 'tcp\|udp' | awk '{print $5}' | sed s/::ffff:// | cut -d: -f1 | sort | uniq -c | sort -nrootopen.com
linux命令:netstat -anp |grep 'tcp\|udp' | awk '{print $5}' | sed s/::ffff:// | cut -d: -f1 | sort | uniq -c | sort -n -n sort | -c uniq | sort | -f1 -d: cut | s/::ffff:// sed | $5}' '{print awk | 'tcp\|udp' |grep -anp netstat netstat -anp |grep 'tcp\|udp' | awk '{print $5}' | sed s/::ffff:// | cut -d: -f1 | sort | uniq -c | sort -nrootopen.com
2018-04-06 22:04:48

linux命令:netstat -pant 2> /dev/null | grep SYN_ | awk '{print $5;}' | cut -d: -f1 | sort | uniq -c | sort -n | tail -20 -20 tail | -n sort | -c uniq | sort | -f1 -d: cut | $5;}' '{print awk | SYN_ grep | /dev/null 2> -pant netstat netstat -pant 2> /dev/null | grep SYN_ | awk '{print $5;}' | cut -d: -f1 | sort | uniq -c | sort -n | tail -20rootopen.com
linux命令:netstat -pant 2> /dev/null | grep SYN_ | awk '{print $5;}' | cut -d: -f1 | sort | uniq -c | sort -n | tail -20 -20 tail | -n sort | -c uniq | sort | -f1 -d: cut | $5;}' '{print awk | SYN_ grep | /dev/null 2> -pant netstat netstat -pant 2> /dev/null | grep SYN_ | awk '{print $5;}' | cut -d: -f1 | sort | uniq -c | sort -n | tail -20rootopen.com
2018-01-31 19:59:48

linux命令:netstat -anl | grep :80 | awk '{print $5}' | cut -d ":" -f 1 | uniq -c | sort -n | grep -c IPHERE IPHERE -c grep | -n sort | -c uniq | 1 -f ":" -d cut | $5}' '{print awk | :80 grep | -anl netstat netstat -anl | grep :80 | awk '{print $5}' | cut -d ":" -f 1 | uniq -c | sort -n | grep -c IPHERErootopen.com
linux命令:netstat -anl | grep :80 | awk '{print $5}' | cut -d ":" -f 1 | uniq -c | sort -n | grep -c IPHERE IPHERE -c grep | -n sort | -c uniq | 1 -f ":" -d cut | $5}' '{print awk | :80 grep | -anl netstat netstat -anl | grep :80 | awk '{print $5}' | cut -d ":" -f 1 | uniq -c | sort -n | grep -c IPHERErootopen.com
2018-06-01 17:54:48

linux命令:netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n | tail tail | -n sort | -c uniq | sort | -f1 -d: cut | $5}' '{print awk | -ntu netstat netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n | tailrootopen.com
linux命令:netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n | tail tail | -n sort | -c uniq | sort | -f1 -d: cut | $5}' '{print awk | -ntu netstat netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n | tailrootopen.com
2018-01-21 07:11:48

linux命令:netstat -putona -putona netstat netstat -putonarootopen.com
linux命令:netstat -putona -putona netstat netstat -putonarootopen.com
2018-05-29 07:25:48

linux命令:netstat -alpn | grep :80 | awk '{print $4}' |awk -F: '{print $(NF-1)}' |sort | uniq -c | sort -n -n sort | -c uniq | |sort $(NF-1)}' '{print -F: |awk $4}' '{print awk | :80 grep | -alpn netstat netstat -alpn | grep :80 | awk '{print $4}' |awk -F: '{print $(NF-1)}' |sort | uniq -c | sort -nrootopen.com
linux命令:netstat -alpn | grep :80 | awk '{print $4}' |awk -F: '{print $(NF-1)}' |sort | uniq -c | sort -n -n sort | -c uniq | |sort $(NF-1)}' '{print -F: |awk $4}' '{print awk | :80 grep | -alpn netstat netstat -alpn | grep :80 | awk '{print $4}' |awk -F: '{print $(NF-1)}' |sort | uniq -c | sort -nrootopen.com
2018-04-02 05:45:48

linux命令:netstat -an | grep -i listen listen -i grep | -an netstat netstat -an | grep -i listenrootopen.com
linux命令:netstat -an | grep -i listen listen -i grep | -an netstat netstat -an | grep -i listenrootopen.com
2018-04-08 01:00:48

linux命令:netstat -alnp | grep ::80 ::80 grep | -alnp netstat netstat -alnp | grep ::80rootopen.com
linux命令:netstat -alnp | grep ::80 ::80 grep | -alnp netstat netstat -alnp | grep ::80rootopen.com
2018-02-15 23:45:48

linux命令:netstat -tap | grep mysql mysql grep | -tap netstat netstat -tap | grep mysqlrootopen.com
linux命令:netstat -tap | grep mysql mysql grep | -tap netstat netstat -tap | grep mysqlrootopen.com
2018-01-18 00:58:48

linux命令:netstat -antuwp | egrep "(^[^t])|(^tcp.*LISTEN)" "(^[^t])|(^tcp.*LISTEN)" egrep | -antuwp netstat netstat -antuwp | egrep "(^[^t])|(^tcp.*LISTEN)"rootopen.com
linux命令:netstat -antuwp | egrep "(^[^t])|(^tcp.*LISTEN)" "(^[^t])|(^tcp.*LISTEN)" egrep | -antuwp netstat netstat -antuwp | egrep "(^[^t])|(^tcp.*LISTEN)"rootopen.com
2018-01-29 06:07:48

linux命令:netstat -an | grep -i listen listen -i grep | -an netstat netstat -an | grep -i listenrootopen.com
linux命令:netstat -an | grep -i listen listen -i grep | -an netstat netstat -an | grep -i listenrootopen.com
2018-02-06 19:12:48

linux命令:netstat -atn | awk ' /tcp/ {printf("%s\n",substr($4,index($4,":")+1,length($4) )) }' | sed -e "s/://g" | sort -rnu | awk '{array [$1] = $1} END {i=32768; again=1; while (again == 1) {if (array[i] == i) {i=i+1} else {print i; again=0}}}' again=0}}}' i; {print else {i=i+1} i) == (array[i] {if 1) == (again while again=1; {i=32768; END $1} = [$1] '{array awk | -rnu sort | "s/://g" -e sed | }' )) {printf("%s\n",substr($4,index($4,":")+1,length($4) /tcp/ ' awk | -atn netstat netstat -atn | awk ' /tcp/ {printf("%s\n",substr($4,index($4,":")+1,length($4) )) }' | sed -e "s/://g" | sort -rnu | awk '{array [$1] = $1} END {i=32768; again=1; while (again == 1) {if (array[i] == i) {i=i+1} else {print i; again=0}}}'rootopen.com
linux命令:netstat -atn | awk ' /tcp/ {printf("%s\n",substr($4,index($4,":")+1,length($4) )) }' | sed -e "s/://g" | sort -rnu | awk '{array [$1] = $1} END {i=32768; again=1; while (again == 1) {if (array[i] == i) {i=i+1} else {print i; again=0}}}' again=0}}}' i; {print else {i=i+1} i) == (array[i] {if 1) == (again while again=1; {i=32768; END $1} = [$1] '{array awk | -rnu sort | "s/://g" -e sed | }' )) {printf("%s\n",substr($4,index($4,":")+1,length($4) /tcp/ ' awk | -atn netstat netstat -atn | awk ' /tcp/ {printf("%s\n",substr($4,index($4,":")+1,length($4) )) }' | sed -e "s/://g" | sort -rnu | awk '{array [$1] = $1} END {i=32768; again=1; while (again == 1) {if (array[i] == i) {i=i+1} else {print i; again=0}}}'rootopen.com
2018-02-07 02:50:48

linux命令:netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n -n sort | -c uniq | sort | -f1 -d: cut | $5}' '{print awk | -ntu netstat netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nrootopen.com
linux命令:netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n -n sort | -c uniq | sort | -f1 -d: cut | $5}' '{print awk | -ntu netstat netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nrootopen.com
2018-02-25 09:33:48

linux命令:netstat -an | grep ESTABLISHED | awk '{print $5}' | awk -F: '{print $1}' | sort | uniq -c | awk '{ printf("%s\t%s\t",$2,$1) ; for (i = 0; i < $1; i++) {printf("*")}; print "" }' }' "" print {printf("*")}; i++) $1; < i 0; = (i for ; printf("%s\t%s\t",$2,$1) '{ awk | -c uniq | sort | $1}' '{print -F: awk | $5}' '{print awk | ESTABLISHED grep | -an netstat netstat -an | grep ESTABLISHED | awk '{print $5}' | awk -F: '{print $1}' | sort | uniq -c | awk '{ printf("%s\t%s\t",$2,$1) ; for (i = 0; i < $1; i++) {printf("*")}; print "" }'rootopen.com
linux命令:netstat -an | grep ESTABLISHED | awk '{print $5}' | awk -F: '{print $1}' | sort | uniq -c | awk '{ printf("%s\t%s\t",$2,$1) ; for (i = 0; i < $1; i++) {printf("*")}; print "" }' }' "" print {printf("*")}; i++) $1; < i 0; = (i for ; printf("%s\t%s\t",$2,$1) '{ awk | -c uniq | sort | $1}' '{print -F: awk | $5}' '{print awk | ESTABLISHED grep | -an netstat netstat -an | grep ESTABLISHED | awk '{print $5}' | awk -F: '{print $1}' | sort | uniq -c | awk '{ printf("%s\t%s\t",$2,$1) ; for (i = 0; i < $1; i++) {printf("*")}; print "" }'rootopen.com
2018-01-06 18:26:48

linux命令:netstat -ntlp | grep -w 80 | awk '{print $7}' | cut -d/ -f1 -f1 -d/ cut | $7}' '{print awk | 80 -w grep | -ntlp netstat netstat -ntlp | grep -w 80 | awk '{print $7}' | cut -d/ -f1rootopen.com
linux命令:netstat -ntlp | grep -w 80 | awk '{print $7}' | cut -d/ -f1 -f1 -d/ cut | $7}' '{print awk | 80 -w grep | -ntlp netstat netstat -ntlp | grep -w 80 | awk '{print $7}' | cut -d/ -f1rootopen.com
2018-03-04 02:13:48

linux命令:netstat -taupe -taupe netstat netstat -tauperootopen.com
linux命令:netstat -taupe -taupe netstat netstat -tauperootopen.com
2018-04-21 09:17:48

linux命令:netstat -4tnape -4tnape netstat netstat -4tnaperootopen.com
linux命令:netstat -4tnape -4tnape netstat netstat -4tnaperootopen.com
2018-01-01 20:15:48

linux命令:netstat -lnp -lnp netstat netstat -lnprootopen.com
linux命令:netstat -lnp -lnp netstat netstat -lnprootopen.com
2018-03-08 20:12:48

linux命令:netstat -ntauple -ntauple netstat netstat -ntauplerootopen.com
linux命令:netstat -ntauple -ntauple netstat netstat -ntauplerootopen.com
2018-05-11 22:06:48

linux命令:netstat -ant | grep :80 | grep ESTABLISHED | awk '{print $5}' | awk -F: '{print $1}' | sort | uniq -c | sort -n -n sort | -c uniq | sort | $1}' '{print -F: awk | $5}' '{print awk | ESTABLISHED grep | :80 grep | -ant netstat netstat -ant | grep :80 | grep ESTABLISHED | awk '{print $5}' | awk -F: '{print $1}' | sort | uniq -c | sort -nrootopen.com
linux命令:netstat -ant | grep :80 | grep ESTABLISHED | awk '{print $5}' | awk -F: '{print $1}' | sort | uniq -c | sort -n -n sort | -c uniq | sort | $1}' '{print -F: awk | $5}' '{print awk | ESTABLISHED grep | :80 grep | -ant netstat netstat -ant | grep :80 | grep ESTABLISHED | awk '{print $5}' | awk -F: '{print $1}' | sort | uniq -c | sort -nrootopen.com
2018-05-28 23:41:48

linux命令:netstat -lantp | grep -i establ | awk -F/ '{print $2}' | uniq | sort sort | uniq | $2}' '{print -F/ awk | establ -i grep | -lantp netstat netstat -lantp | grep -i establ | awk -F/ '{print $2}' | uniq | sortrootopen.com
linux命令:netstat -lantp | grep -i establ | awk -F/ '{print $2}' | uniq | sort sort | uniq | $2}' '{print -F/ awk | establ -i grep | -lantp netstat netstat -lantp | grep -i establ | awk -F/ '{print $2}' | uniq | sortrootopen.com
2018-03-14 07:37:48

linux命令:netstat -lantp | grep -i establ | awk -F/ '{print $2}' | sort | uniq uniq | sort | $2}' '{print -F/ awk | establ -i grep | -lantp netstat netstat -lantp | grep -i establ | awk -F/ '{print $2}' | sort | uniqrootopen.com
linux命令:netstat -lantp | grep -i establ | awk -F/ '{print $2}' | sort | uniq uniq | sort | $2}' '{print -F/ awk | establ -i grep | -lantp netstat netstat -lantp | grep -i establ | awk -F/ '{print $2}' | sort | uniqrootopen.com
2018-03-24 15:46:48

linux命令:netstat -lantp | grep -i stab | awk -F/ '{print $2}' | sort | uniq uniq | sort | $2}' '{print -F/ awk | stab -i grep | -lantp netstat netstat -lantp | grep -i stab | awk -F/ '{print $2}' | sort | uniqrootopen.com
linux命令:netstat -lantp | grep -i stab | awk -F/ '{print $2}' | sort | uniq uniq | sort | $2}' '{print -F/ awk | stab -i grep | -lantp netstat netstat -lantp | grep -i stab | awk -F/ '{print $2}' | sort | uniqrootopen.com
2018-04-27 18:44:48

linux命令:netstat -an | awk '$1 ~ /[Tt][Cc][Pp]/ && $NF ~ /ESTABLISHED/{i++}END{print "Connected:\t", i}' i}' "Connected:\t", /ESTABLISHED/{i++}END{print ~ $NF && /[Tt][Cc][Pp]/ ~ '$1 awk | -an netstat netstat -an | awk '$1 ~ /[Tt][Cc][Pp]/ && $NF ~ /ESTABLISHED/{i++}END{print "Connected:\t", i}'rootopen.com
linux命令:netstat -an | awk '$1 ~ /[Tt][Cc][Pp]/ && $NF ~ /ESTABLISHED/{i++}END{print "Connected:\t", i}' i}' "Connected:\t", /ESTABLISHED/{i++}END{print ~ $NF && /[Tt][Cc][Pp]/ ~ '$1 awk | -an netstat netstat -an | awk '$1 ~ /[Tt][Cc][Pp]/ && $NF ~ /ESTABLISHED/{i++}END{print "Connected:\t", i}'rootopen.com
2018-05-17 15:36:48

linux命令:netstat -an | grep -Ec '^tcp.+ESTABLISHED$' '^tcp.+ESTABLISHED$' -Ec grep | -an netstat netstat -an | grep -Ec '^tcp.+ESTABLISHED$'rootopen.com
linux命令:netstat -an | grep -Ec '^tcp.+ESTABLISHED$' '^tcp.+ESTABLISHED$' -Ec grep | -an netstat netstat -an | grep -Ec '^tcp.+ESTABLISHED$'rootopen.com
2018-05-17 09:45:48

linux命令:netstat -an|grep -ci "tcp.*established" "tcp.*established" -ci -an|grep netstat netstat -an|grep -ci "tcp.*established"rootopen.com
linux命令:netstat -an|grep -ci "tcp.*established" "tcp.*established" -ci -an|grep netstat netstat -an|grep -ci "tcp.*established"rootopen.com
2018-04-14 13:45:48

linux命令:netstat -anp --tcp --udp | grep LISTEN LISTEN grep | --udp --tcp -anp netstat netstat -anp --tcp --udp | grep LISTENrootopen.com
linux命令:netstat -anp --tcp --udp | grep LISTEN LISTEN grep | --udp --tcp -anp netstat netstat -anp --tcp --udp | grep LISTENrootopen.com
2018-01-04 01:20:48

linux命令:netstat -ltun -ltun netstat netstat -ltunrootopen.com
linux命令:netstat -ltun -ltun netstat netstat -ltunrootopen.com
2018-05-10 00:16:48

linux命令:netstat | grep EST | awk '{print $5}' | sort sort | $5}' '{print awk | EST grep | netstat netstat | grep EST | awk '{print $5}' | sortrootopen.com
linux命令:netstat | grep EST | awk '{print $5}' | sort sort | $5}' '{print awk | EST grep | netstat netstat | grep EST | awk '{print $5}' | sortrootopen.com
2018-04-23 16:58:48

linux命令:netstat | awk '/EST/{print $5}' | sort sort | $5}' '/EST/{print awk | netstat netstat | awk '/EST/{print $5}' | sortrootopen.com
linux命令:netstat | awk '/EST/{print $5}' | sort sort | $5}' '/EST/{print awk | netstat netstat | awk '/EST/{print $5}' | sortrootopen.com
2018-04-22 00:06:48

linux命令:netstat -nptl -nptl netstat netstat -nptlrootopen.com
linux命令:netstat -nptl -nptl netstat netstat -nptlrootopen.com
2018-06-07 17:39:48

linux命令:netstat -in -in netstat netstat -inrootopen.com
linux命令:netstat -in -in netstat netstat -inrootopen.com
2018-03-30 06:36:48

linux命令:netstat -nr | awk 'BEGIN {while ($3!="0.0.0.0") getline; print $2}' $2}' print getline; ($3!="0.0.0.0") {while 'BEGIN awk | -nr netstat netstat -nr | awk 'BEGIN {while ($3!="0.0.0.0") getline; print $2}'rootopen.com
linux命令:netstat -nr | awk 'BEGIN {while ($3!="0.0.0.0") getline; print $2}' $2}' print getline; ($3!="0.0.0.0") {while 'BEGIN awk | -nr netstat netstat -nr | awk 'BEGIN {while ($3!="0.0.0.0") getline; print $2}'rootopen.com
2018-05-29 10:41:48

linux命令:netstat -luntp -luntp netstat netstat -luntprootopen.com
linux命令:netstat -luntp -luntp netstat netstat -luntprootopen.com
2018-05-14 00:55:48

linux命令:netstat -n | awk '/^tcp/ {++B[$NF]} END {for(a in B) print a, B[a]}' B[a]}' a, print B) in {for(a END {++B[$NF]} '/^tcp/ awk | -n netstat netstat -n | awk '/^tcp/ {++B[$NF]} END {for(a in B) print a, B[a]}'rootopen.com
linux命令:netstat -n | awk '/^tcp/ {++B[$NF]} END {for(a in B) print a, B[a]}' B[a]}' a, print B) in {for(a END {++B[$NF]} '/^tcp/ awk | -n netstat netstat -n | awk '/^tcp/ {++B[$NF]} END {for(a in B) print a, B[a]}'rootopen.com
2018-01-02 13:31:48

linux命令:netstat -an | awk '/tcp/ {print $6}' | sort | uniq -c -c uniq | sort | $6}' {print '/tcp/ awk | -an netstat netstat -an | awk '/tcp/ {print $6}' | sort | uniq -crootopen.com
linux命令:netstat -an | awk '/tcp/ {print $6}' | sort | uniq -c -c uniq | sort | $6}' {print '/tcp/ awk | -an netstat netstat -an | awk '/tcp/ {print $6}' | sort | uniq -crootopen.com
2018-04-15 03:19:48

linux命令:netstat -tunlp -tunlp netstat netstat -tunlprootopen.com
linux命令:netstat -tunlp -tunlp netstat netstat -tunlprootopen.com
2018-01-15 13:47:48

linux命令:netstat -an | grep ESTABLISHED | awk '\''{print $5}'\'' | awk -F: '\''{print $1}'\'' | sort | uniq -c | awk '\''{ printf("%s\t%s\t",$2,$1); for (i = 0; i < $1; i++) {printf("*")}; print ""}'\'' ""}'\'' print {printf("*")}; i++) $1; < i 0; = (i for printf("%s\t%s\t",$2,$1); '\''{ awk | -c uniq | sort | $1}'\'' '\''{print -F: awk | $5}'\'' '\''{print awk | ESTABLISHED grep | -an netstat netstat -an | grep ESTABLISHED | awk '\''{print $5}'\'' | awk -F: '\''{print $1}'\'' | sort | uniq -c | awk '\''{ printf("%s\t%s\t",$2,$1); for (i = 0; i < $1; i++) {printf("*")}; print ""}'\''rootopen.com
linux命令:netstat -an | grep ESTABLISHED | awk '\''{print $5}'\'' | awk -F: '\''{print $1}'\'' | sort | uniq -c | awk '\''{ printf("%s\t%s\t",$2,$1); for (i = 0; i < $1; i++) {printf("*")}; print ""}'\'' ""}'\'' print {printf("*")}; i++) $1; < i 0; = (i for printf("%s\t%s\t",$2,$1); '\''{ awk | -c uniq | sort | $1}'\'' '\''{print -F: awk | $5}'\'' '\''{print awk | ESTABLISHED grep | -an netstat netstat -an | grep ESTABLISHED | awk '\''{print $5}'\'' | awk -F: '\''{print $1}'\'' | sort | uniq -c | awk '\''{ printf("%s\t%s\t",$2,$1); for (i = 0; i < $1; i++) {printf("*")}; print ""}'\''rootopen.com
2018-03-26 17:42:48

linux命令:netstat -rn | grep UG | tr -s " " | cut -d" " -f2 -f2 " -d" cut | " " -s tr | UG grep | -rn netstat netstat -rn | grep UG | tr -s " " | cut -d" " -f2rootopen.com
linux命令:netstat -rn | grep UG | tr -s " " | cut -d" " -f2 -f2 " -d" cut | " " -s tr | UG grep | -rn netstat netstat -rn | grep UG | tr -s " " | cut -d" " -f2rootopen.com
2018-05-23 11:32:48

linux命令:netstat -rn | awk '/UG/{print $2}' $2}' '/UG/{print awk | -rn netstat netstat -rn | awk '/UG/{print $2}'rootopen.com
linux命令:netstat -rn | awk '/UG/{print $2}' $2}' '/UG/{print awk | -rn netstat netstat -rn | awk '/UG/{print $2}'rootopen.com
2018-05-16 21:03:48

linux命令:netstat -l -p --tcp | egrep -e 'www.*[0-9]{3,4}\/(apache2|httpd)' | awk '{print$7}' '{print$7}' awk | 'www.*[0-9]{3,4}\/(apache2|httpd)' -e egrep | --tcp -p -l netstat netstat -l -p --tcp | egrep -e 'www.*[0-9]{3,4}\/(apache2|httpd)' | awk '{print$7}'rootopen.com
linux命令:netstat -l -p --tcp | egrep -e 'www.*[0-9]{3,4}\/(apache2|httpd)' | awk '{print$7}' '{print$7}' awk | 'www.*[0-9]{3,4}\/(apache2|httpd)' -e egrep | --tcp -p -l netstat netstat -l -p --tcp | egrep -e 'www.*[0-9]{3,4}\/(apache2|httpd)' | awk '{print$7}'rootopen.com
2018-02-21 18:22:48

linux命令:netstat -antp | grep 22 22 grep | -antp netstat netstat -antp | grep 22rootopen.com
linux命令:netstat -antp | grep 22 22 grep | -antp netstat netstat -antp | grep 22rootopen.com
2018-05-31 11:02:48

linux命令:netstat -tlvp -tlvp netstat netstat -tlvprootopen.com
linux命令:netstat -tlvp -tlvp netstat netstat -tlvprootopen.com
2018-03-19 05:03:48

linux命令:netstat -n | grep '^tcp.*<IP>:<PORT>' | tr " " | awk 'BEGIN{FS="( |:)"}{print $6}' | sort | uniq -c | sort -n -k1 | awk '{if ($1 >= 10){print $2}}' $2}}' 10){print >= ($1 '{if awk | -k1 -n sort | -c uniq | sort | $6}' |:)"}{print 'BEGIN{FS="( awk | " " tr | '^tcp.*<IP>:<PORT>' grep | -n netstat netstat -n | grep '^tcp.*<IP>:<PORT>' | tr " " | awk 'BEGIN{FS="( |:)"}{print $6}' | sort | uniq -c | sort -n -k1 | awk '{if ($1 >= 10){print $2}}'rootopen.com
linux命令:netstat -n | grep '^tcp.*<IP>:<PORT>' | tr " " | awk 'BEGIN{FS="( |:)"}{print $6}' | sort | uniq -c | sort -n -k1 | awk '{if ($1 >= 10){print $2}}' $2}}' 10){print >= ($1 '{if awk | -k1 -n sort | -c uniq | sort | $6}' |:)"}{print 'BEGIN{FS="( awk | " " tr | '^tcp.*<IP>:<PORT>' grep | -n netstat netstat -n | grep '^tcp.*<IP>:<PORT>' | tr " " | awk 'BEGIN{FS="( |:)"}{print $6}' | sort | uniq -c | sort -n -k1 | awk '{if ($1 >= 10){print $2}}'rootopen.com
2018-05-13 02:26:48

linux命令:netstat -lnp6 | grep :8080 | sed 's#^[^\/]*/\([a-z0-9]*\)#\1#' 's#^[^\/]*/\([a-z0-9]*\)#\1#' sed | :8080 grep | -lnp6 netstat netstat -lnp6 | grep :8080 | sed 's#^[^\/]*/\([a-z0-9]*\)#\1#'rootopen.com
linux命令:netstat -lnp6 | grep :8080 | sed 's#^[^\/]*/\([a-z0-9]*\)#\1#' 's#^[^\/]*/\([a-z0-9]*\)#\1#' sed | :8080 grep | -lnp6 netstat netstat -lnp6 | grep :8080 | sed 's#^[^\/]*/\([a-z0-9]*\)#\1#'rootopen.com
2018-03-08 13:39:48

Linux的Bash命令行(A-Z排序)