iftop

iftop

一款实时流量监控工具

补充说明

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

语法

iftop(选项)

选项

iftop: display bandwidth usage on an interface by host

Synopsis: iftop -h | [-npblNBP] [-i interface] [-f filter code]
    [-F net/mask] [-G net6/mask6]

   -h                  display this message
   -n                  don't do hostname lookups
   -N                  don't convert port numbers to services
   -p                  run in promiscuous mode (show traffic between other
                       hosts on the same network segment)
   -b                  don't display a bar graph of traffic
   -B                  Display bandwidth in bytes
   -i interface        listen on named interface
   -f filter code      use filter code to select packets to count
                      (default: none, but only IP packets are counted)
   -F net/mask         show traffic flows in/out of IPv4 network
   -G net6/mask6       show traffic flows in/out of IPv6 network
   -l                  display and count link-local IPv6 traffic (default: off)
   -P                  show ports as well as hosts
   -m limit            sets the upper limit for the bandwidth scale
   -c config file      specifies an alternative configuration file
   -t                  use text interface without ncurses

   Sorting orders:
   -o 2s                Sort by first column (2s traffic average)
   -o 10s               Sort by second column (10s traffic average) [default]
   -o 40s               Sort by third column (40s traffic average)
   -o source            Sort by source address
   -o destination       Sort by destination address

   The following options are only available in combination with -t
   -s num              print one single text output afer num seconds, then quit
   -L num              number of lines to print

界面说明

第一行为带宽,这里为1Mbit,不是字节哦.
连接列表,最后三列分别是2秒,10秒和40秒的平均流量
=> 代表发送
<= 代表接收
最后三行表示发送,接收和全部的流量,
第二列为你运行iftop到目前流量,第三列为高峰值,第四列为平均值。

实例

iftop           # 默认是监控第一块网卡的流量
iftop -i eth1   # 监控eth1
iftop -n        # 直接显示IP, 不进行DNS反解析
iftop -N        # 直接显示连接埠编号, 不显示服务名称
iftop -F 192.168.1.0/24 or 192.168.1.0/255.255.255.0  # 显示某个网段进出封包流量

若文章对你有帮助,可以点赞或打赏支持我们。发布者:Aurora,转载请注明出处:http://61.174.243.28:13541/AY-knowledg-hub/iftop/

(0)
AuroraAurora站点维系者
上一篇 2023年 12月 19日 下午3:26
下一篇 2023年 12月 19日 下午3:26

相关推荐

  • ip

    文章目录ip补充说明语法对象选项实例 ip 网络配置工具 补充说明 ip命令 用来显示或操纵Linux主机的路由、网络设备、策略路由和隧道,是Linux下较新的功能强大的网络配置工…

    入门教程 2023年 12月 19日
  • cd

    文章目录cd概要主要用途参数选项返回值例子注意 cd 切换用户当前工作目录。 概要 cd [-L|[-P [-e]]] [dir] 主要用途 切换工作目录至dir。其中dir的表示…

    入门教程 2023年 12月 7日
  • renice

    文章目录renice补充说明语法选项参数实例 renice 修改正在运行的进程的调度优先级 补充说明 renice命令 可以修改正在运行的进程的调度优先级。预设是以程序识别码指定程…

    入门教程 2024年 3月 1日
  • pkexec

    文章目录pkexec补充说明语法选项返回值示例参考资料 pkexec 以其他用户身份执行命令 补充说明 pkexec 允许授权用户以另一个用户的身份执行 PROGRAM。如果未指定…

    入门教程 2024年 3月 1日
  • hostnamectl

    文章目录hostnamectl补充说明语法指令选项实例 hostnamectl 查询或更改系统主机名 补充说明 hostnamectl可用于查询和更改系统主机名和相关设置。 语法 …

    入门教程 2023年 12月 15日
  • setpci

    文章目录setpci补充说明语法选项参数实例 setpci 查询和配置PCI设备的使用工具 补充说明 setpci命令 是一个查询和配置PCI设备的使用工具。 语法 setpci(…

    入门教程 2024年 3月 4日
  • command

    文章目录command补充说明语法参数实例 command 调用并执行指定的命令 补充说明 command命令 调用指定的指令并执行,命令执行时不查询shell函数。command…

    入门教程 2023年 12月 7日
  • insmod

    文章目录insmod补充说明语法选项参数实例 insmod 将给定的模块加载到内核中 补充说明 insmod命令 用于将给定的模块加载到内核中。Linux有许多功能是通过模块的方式…

    入门教程 2023年 12月 19日
  • w

    文章目录w补充说明语法选项参数实例 w 显示目前登入系统的用户信息 补充说明 w命令 用于显示已经登陆系统的用户列表,并显示用户正在执行的指令。执行这个命令可得知目前登入系统的用户…

    入门教程 2024年 1月 3日
  • Helm | Helm 依赖列表

    文章目录helm dependency list简介可选项从父命令继承的命令请参阅 helm dependency list 列举指定chart的依赖 简介 列举所有的chart中…

    入门教程 2023年 12月 14日

发表回复

登录后才能评论
Translate »