iftop命令 – 套接字及进程的网络利用率

aiofo2022-08-10  149

iftop是一款实时流量监控工具,监控TCP/IP连接等,缺点就是无报表功能。必须以root身份才能运行。

语法格式:iftop [参数]

常用参数:

-i 指定要监控的网卡
-n 直接显示IP, 不进行DNS反解析

参考实例

默认监控第一块网卡的流量:

[root@linuxcool ~]# iftop 

监控eth1网卡的流量:

[root@linuxcool ~]# iftop eth1

直接显示IP, 不进行DNS反解析:

[root@linuxcool ~]# iftop -n
转载请注明原文地址:https://www.aiofo.com/read-944.html