Linux(Centos 7.6)命令详解:netstat

1.命令作用

打印网络连接、路由表、接口统计信息、网络地址转换连接和多播成员资格(Print network connections, routing tables, interface statistics, masquerade connections, and multicast memberships)

2.命令语法

usage: netstat [-vWeenNcCF] [<Af>] -r
             netstat [-vWnNcaeol] [<Socket> ...]
             netstat { [-vWeenNac] -I[<Iface>] | [-veenNac] -i | [-cnNe] -M | -s [-6tuw] } [delay]

<Socket>={-t|--tcp} {-u|--udp} {-U|--udplite} {-S|--sctp} {-w|--raw} {-x|--unix} --ax25 --ipx --netrom
<AF>=Use '-6|-4' or '-A <af>' or '--<af>'; default: inet
address families: inet (DARPA Internet) inet6 (IPv6) ax25 (AMPR AX.25) netrom (AMPR NET/ROM) ipx (Novell IPX) ddp (Appletalk DDP) x25 (CCITT X.25)

3.参数详解

OPTION:

  • -r, --route,显示路由表信息
  • -I, --interfaces=<Iface>,显示<Iface>的接口表
  • -i, --interfaces,显示网络接口信息
  • -g, --groups,显示组播组成员关系
  • -s, --statistics,显示网络统计信息。包括网络接口、SNMP协议等
  • -M, --masquerade,显示伪装连接
  • -v, --verbose,显示详细信息
  • -W, --wide,不要截断IP地址
  • -n, --numeric,不解析名称(以数字形式显示地址和端
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

豆是浪个

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值