1. 程式人生 > >linux 網路監控軟體nethogs iftop

linux 網路監控軟體nethogs iftop

1、nethogs

yum -y install nethogs

裝上了這個工具之後,使用起來就非常簡單了。敲入nethogs 就會給出所有的資訊。看下面的例子。

[email protected]:~# nethogs
NetHogs version 0.8.0

 PID USER     PROGRAM                      DEV        SENT      RECEIVED
2214 root /usr/lib/apt/methods/http eth0 4.693 238.631 KB/sec 2051 ubuntu sshd: [email protected]
/1 eth0 3.442 0.310 KB/sec 1120 ubuntu sshd: [email protected]/0 eth0 0.416 0.035 KB/sec 2213 root /usr/lib/apt/methods/http eth0 0.021 0.023 KB/sec ? root unknown TCP 0.000 0.000 KB/sec TOTAL 8.572 239.000 KB/sec


2、iftop

yum -y install iftop

[email protected]:~# iftop -B