2024年11月Linux中netstat命令操作实例汇总(3)

发布时间:

  ⑴实例:显示UDP端口号的使用情况

  ⑵命令:stat -apu

  ⑶[rootandy ~]# stat -apu

  ⑷Active Inter connections (servers and established

  ⑸Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name

  ⑹udp *: *:* /java

  ⑺udp *: *:* /java

  ⑻udp *: *:* /java

  ⑼udp ::ffff:..: ::ffff:...:ndmp ESTABLISHED /java

  ⑽udp *: *:* /java

  ⑾udp ::ffff:..: ::ffff:...:ndmp ESTABLISHED /java

  ⑿udp *: *:* /java

  ⒀udp *: *:* /java

  ⒁udp *: *:* /java

  ⒂udp ::ffff:..: ::ffff:...:ndmp ESTABLISHED /java

  ⒃udp ::ffff:..: ::ffff:...:ndmp ESTABLISHED /java

  ⒄udp *: *:* /java

  ⒅udp *: *:* /java

  ⒆udp *: *:* /java

  ⒇udp ::ffff:..: ::ffff:...:ndmp ESTABLISHED /java

  ⒈udp *: *:* /java

  ⒉udp *: *:* /java

  ⒊udp *: *:* /java

  ⒋udp ::ffff:..: ::ffff:...:ndmp ESTABLISHED /java

  ⒌udp ::ffff:..: ::ffff:...:ndmp ESTABLISHED /java

  ⒍udp ::ffff:..: ::ffff:...:ndmp ESTABLISHED /java

  ⒎udp ::ffff:..: ::ffff:...:ndmp ESTABLISHED /java

  ⒏udp *: *:* /java

  ⒐udp *: *:* /java

  ⒑udp *: *:* /java

  ⒒udp *: *:* /java

  ⒓[rootandy ~]#

  ⒔实例:显示网卡列表

  ⒕命令:stat -i

  ⒖[rootandy ~]# stat -i

  ⒗Kernel Interface table

  ⒘Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg

  ⒙eth BMRU

  ⒚lo LRU

  ⒛[rootandy ~]#

  ①实例:显示组播组的关系

  ②命令:stat -g

  ③[rootandy ~]# stat -g

  ④IPv/IPv Group Memberships

  ⑤Interface Reft Group

  ⑥--------------- ------ ---------------------

  ⑦lo all-systems.mcast.

  ⑧eth all-systems.mcast.

  ⑨lo ff::

  ⑩eth ff:::ffff:bc

  Ⅰeth ff::

  Ⅱ[rootandy ~]#

  Ⅲ实例:显示网络统计信息

  Ⅳ命令:stat -s