Linux iftop命令怎么使用
发表于:2026-11-02 作者:千家信息网编辑
千家信息网最后更新 2026年11月02日,本篇内容介绍了"Linux iftop命令怎么使用"的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!Li
千家信息网最后更新 2026年11月02日Linux iftop命令怎么使用
本篇内容介绍了"Linux iftop命令怎么使用"的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!
Linux常用命令iftop命令 是一款实时流量监控工具,监控TCP/IP连接等,缺点就是无报表功能。必须以root身份才能运行。
iftop
一款实时流量监控工具
语法
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 eth2 # 监控eth2 iftop -n # 直接显示IP, 不进行DNS反解析 iftop -N # 直接显示连接埠编号, 不显示服务名称 iftop -F 192.168.1.0/24 or 192.168.1.0/255.255.255.0 # 显示某个网段进出封包流量
"Linux iftop命令怎么使用"的内容就介绍到这里了,感谢大家的阅读。如果想了解更多行业相关的知识可以关注网站,小编将为大家输出更多高质量的实用文章!
流量
监控
命令
代表
内容
实时
工具
更多
知识
运行
实用
学有所成
接下来
一行
功能
名称
困境
字节
实例
实际
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
华服互联网科技靠谱吗
科技赋能下的互联网金融
科技平台互联网
互联网科技保险
互联网金融 科技
合肥互联网科技公司
互联网科技集团
互联网科技的英文
深圳齐家互联网科技
互联网科技咨询
小米互联网科技园设置
宁夏众和广鑫互联网科技有限公司
彤创互联网科技有限公司
互联网5g黑科技有哪些
高科技互联网发展前景如何
广州百诚互联网科技有限公司官网
半导体是互联网高科技吗
西安有哪些互联网高科技企业
抖集互联网科技技术咨询
青岛易易互联网科技
互联网科技公司简介
科技互联网政务服务
互联网最新的科技有限公司
科技互联网技术
与互联网科技公司
北京互联网络科技有限公司
互联网对科技的发展
乌苏新华互联网科技做什么的
厦门江牛科技互联网
颐高云石互联网科技