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

相关推荐

  • ssh-copy-id

    文章目录ssh-copy-id补充说明语法选项实例 ssh-copy-id 把本地的ssh公钥文件安装到远程主机对应的账户下 补充说明 ssh-copy-id命令 可以把本地主机的…

    入门教程 2024年 3月 11日
  • clock

    文章目录clock补充说明语法选项实例 clock 用于调整 RTC 时间 补充说明 clock命令用于调整 RTC 时间。 RTC 是电脑内建的硬件时间,执行这项指令可以显示现在…

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

    exportfs 管理NFS共享文件系统列表 补充说明 exportfs 命令用来管理当前NFS共享的文件系统列表。 参数: -a 打开或取消所有目录共享。 -o options,…

    入门教程 2023年 12月 14日
  • sh

    文章目录sh补充说明语法选项实例 sh shell命令解释器 补充说明 sh命令 是shell命令语言解释器,执行命令从标准输入读取或从一个文件中读取。通过用户输入命令,和内核进行…

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

    文章目录quota补充说明语法选项参数实例 quota 显示磁盘已使用的空间与限制 补充说明 quota命令 用于显示用户或者工作组的磁盘配额信息。输出信息包括磁盘使用和配额限制。…

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

    文章目录lha补充说明选项实例 lha 压缩或解压缩lzh格式文件 补充说明 lha命令 是从lharc演变而来的压缩程序,文件经它压缩后,会另外产生具有.lzh扩展名的压缩文件。…

    入门教程 2023年 12月 19日
  • 常用函数

    以下列出了 Pandas 常用的一些函数及使用实例: 文章目录读取数据实例查看数据实例实例数据清洗实例数据选择和切片实例数据排序实例数据分组和聚合实例数据合并实例数据选择和过滤数据…

    2023年 5月 16日
  • curl

    文章目录curl补充说明语法选项实例文件下载不输出错误和进度信息断点续传使用curl设置参照页字符串用curl设置用户代理字符串curl的带宽控制和下载配额用curl进行认证只打印…

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

    文章目录unprotoize补充说明语法选项参数 unprotoize 删除C语言源代码文件中的函数原型 补充说明 unprotoize命令 属于gcc套件,用于删除C语言源代码文…

    入门教程 2024年 3月 11日
  • Warning: The resulting partition is not properly aligned for best performance

    在使用parted创建分区时产生告警信息, “Warning: The resulting partition is not properly aligned for …

    入门教程 2023年 7月 11日

发表回复

登录后才能评论
Translate »