Linux命令iftop

0 0 0

iftop is a command-line system monitor tool that produces a frequently updated list of network connections. 维基百科 iftop

安装


1
2
3
4
5
6
7
8
9
# 安装依赖
yum install libpcap libpcap-devel ncurses ncurses-devel
# 下载源码并解压编译
wget http://www.ex-parrot.com/pdw/iftop/download/iftop-0.17.tar.gz
tar -zxvf iftop-0.17.tar.gz
cd iftop-0.17.tar.gz
./configure
make
make install

使用


iftop

运行iftop。显示域名,这将会产生额外的流量

iftop -i eth0 -n

监测网卡eth0,显示IP。


常用参数


Host display:
Port display:
Sorting:
General: