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

相关推荐

  • fmt

    文章目录fmt补充说明语法选项参数 fmt 读取文件后优化处理并输出 补充说明 fmt命令 读取文件的内容,根据选项的设置对文件格式进行简单的优化处理,并将结果送到标准输出设备。 …

    入门教程 2023年 12月 14日
  • iOS SQLite数据库

    文章目录简介实例步骤输出 简介 在IOS中使用Sqlite来处理数据。如果你已经了解了SQL,那你可以很容易的掌握SQLite数据库的操作。 实例步骤 1、创建一个简单的View …

    2023年 4月 1日
  • IOS-Twitter和Facebook

    文章目录简介实例步骤输出 简介 Twitter已经整合到iOS5.0,而Facebook已经被集成在 iOS 6.0中。本教程的重点讲解如何利用苹果提供的类在iOS5.0和iOS6…

    2023年 4月 1日
  • as

    文章目录as补充说明语法选项参数 as 汇编语言编译器 补充说明 as命令 GNU组织推出的一款汇编语言编译器,它支持多种不同类型的处理器。 语法 as(选项)(参数) 选项 -a…

    入门教程 2023年 12月 6日
  • source

    文章目录source概要主要用途参数返回值错误用法例子Q&A注意 source 在当前Shell环境中从指定文件读取和执行命令。 概要 source filename [a…

    入门教程 2024年 3月 5日
  • exit

    文章目录exit概要主要用途参数返回值例子注意 exit 退出当前的shell。 概要 exit [n] 主要用途 执行exit可使shell以指定的状态值退出。若不设置参数,则以…

    入门教程 2023年 12月 14日
  • ip6tables-restore

    文章目录ip6tables-restore补充说明语法选项 ip6tables-restore 还原ip6tables表 补充说明 ip6tables-restore命令 用来还原…

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

    文章目录lftp补充说明语法选项参数实例 lftp 优秀的文件客户端程序 补充说明 lftp命令 是一款优秀的文件客户端程序,它支持ftp、SETP、HTTP和FTPs等多种文件传…

    入门教程 2023年 12月 19日
  • Objective C 基础知识

    在iOS的开发中使用的是Objective C语言,它是一种面向对象的语言,因而对于已经掌握面向对象语言知识的编程者来说是非常简单的。 文章目录接口和实现创建对象方法(method…

    入门教程 2023年 4月 10日
  • mkisofs

    文章目录mkisofs补充说明语法选项参数实例 mkisofs 建立ISO 9660映像文件 补充说明 mkisofs命令 用来将指定的目录与文件做成ISO 9660格式的映像文件…

    入门教程 2024年 1月 3日

发表回复

登录后才能评论
Translate »