Socket Statistics

ss是Socket Statistics的缩写。

netstat tips

1, netstat some of the commonly used options

netstat-s option to the various agreements were displayed according to their statistics.

netstat-e This option is used to display statistics on the Ethernet.

netstat-r This option displays information on the routing table.

netstat-a This option displays a list of all the valid connection information, including the connection has been established and the monitoring connection requests LISTENING ESTABLISHED connection.

netstat-n shows all connections established and effective


Show local listening TCP/UDP ports, and the process they belong to:



netstat -tulpn

它利用到了TCP协议栈中tcp_diag。tcp_diag是一个用于分析统计的模块,可以获得Linux 内核中第一手的信息,这就确保了ss的快捷高效。当然,如果你的系统中没有tcp_diag,ss也可以正常运行,只是效率会变得稍慢。(但仍然比 netstat要快。)

netstat命令是net-tools工具集中的一员
而ss命令是iproute工具集中的一员:

yum install iproute iproute-doc



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值