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

相关推荐

  • fishshell

    文章目录fishshell安装启动与帮助彩色显示自动建议自动补全脚本语法if 语句switch 语句while 循环for 循环函数提示符配置参考资料 fishshell 比 ba…

    入门教程 2023年 12月 14日
  • Java 封装

    在面向对象程式设计方法中,封装(英语:Encapsulation)是指一种将抽象性函式接口的实现细节部分包装、隐藏起来的方法。 封装可以被认为是一个保护屏障,防止该类的代码和数据被…

    入门教程 2023年 3月 9日
  • HTML 基础

    文章目录HTML 基础- 4个实例HTML 标题实例HTML 段落实例HTML 链接实例HTML 图像实例 HTML 基础- 4个实例 不要担心本章中您还没有学过的例子。 您将在下…

    入门教程 2023年 4月 11日
  • uupick

    文章目录uupick补充说明语法选项例子 uupick 命令处理传送进来的文件 补充说明 uupick命令 处理传送进来的文件。 当其他主机通过UUCP将文件传送进来时,可利用uu…

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

    文章目录tcpreplay补充说明选项实例 tcpreplay 将PCAP包重新发送,用于性能或者功能测试 补充说明 简单的说, tcpreplay 是一种pcap包的重放工具,它…

    入门教程 2024年 3月 11日
  • linux 字符界面浏览器 w3m

    文章目录使用背景常用操作用快捷键页面操作超链接操作文件/流 操作缓存操作缓存选择模式(也就是按了s以後)书签操作搜索标记杂项行编辑模式 使用背景 linux无UI界面情况下,使用这…

    2023年 2月 17日
  • Pandas安装

    安装 pandas 需要基础环境是 Python,开始前我们假定你已经安装了 Python 和 Pip。 使用 pip 安装 pandas: pip install pandas …

    2023年 5月 16日
  • arping

    文章目录arping补充说明语法选项参数实例 arping 通过发送ARP协议报文测试网络 补充说明 arping命令 是用于发送arp请求到一个相邻主机的工具,arping使用a…

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

    文章目录setsid补充说明语法选项实例 setsid 在新的会话中运行程序 补充说明 setsid命令 子进程从父进程继承了:SessionID、进程组ID和打开的终端。子进程如…

    入门教程 2024年 3月 4日
  • 35. 读取文件

    欢迎来到 Golang 系列教程的第 35 篇。 文件读取是所有编程语言中最常见的操作之一。本教程我们会学习如何使用 Go 读取文件。 本教程分为如下小节。 将整个文件读取到内存 …

    2023年 12月 5日

发表回复

登录后才能评论
Translate »