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

相关推荐

  • command

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

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

    文章目录hostname补充说明语法选项实例 hostname 显示和设置系统的主机名 补充说明 hostname命令用于显示和设置系统的主机名称。 环境变量 HOSTNAME 也…

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

    文章目录objdump补充说明选项实例 objdump 显示二进制文件信息 补充说明 objdump命令 是用查看目标文件或者可执行的目标文件的构成的gcc工具。 选项 -a –…

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

    文章目录declare语法主要用途选项参数返回值例子讨论注意 declare 声明变量,设置或显示变量的值和属性。 语法 declare [-aAfFgilnrtux] [-p] …

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

    文章目录time补充说明语法参数实例软件包软件包的语法软件包指令参数软件包实例参考资料 time 统计给定命令所花费的总时间 补充说明 time 命令是用来确定一个给定的命令需要运…

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

    文章目录ftp补充说明语法选项参数实例 ftp 用来设置文件系统相关功能 补充说明 ftp命令 用来设置文件系统相关功能。ftp服务器在网上较为常见,Linux ftp命令的功能是…

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

    文章目录ftpwho补充说明语法选项 ftpwho 显示当前每个ftp会话信息 补充说明 ftpwho命令 ftp服务器套件proftpd的工作指令,用于显示当前每个ftp会话信息…

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

    文章目录lilo补充说明语法选项实例 lilo 安装核心载入开机管理程序 补充说明 lilo命令 用于安装核心载入,开机管理程序。lilo是个Linux系统核心载入程序,同时具备管…

    入门教程 2023年 12月 19日
  • SQL SELECT DISTINCT 语句

    SELECT DISTINCT 语句用于返回唯一不同的值。 文章目录SQL SELECT DISTINCT 语句SQL SELECT DISTINCT 语法SELECT DISTI…

    2023年 5月 28日
  • ntpdate

    文章目录ntpdate补充说明语法选项 ntpdate 使用网络计时协议(NTP)设置日期和时间 补充说明 ntpdate命令 是用来设置本地日期和时间。它从指定的每个服务器获得了…

    入门教程 2024年 1月 10日

发表回复

登录后才能评论
Translate »