查看系统版本及位数
uname -a
uname -r
这两个可以查看版本号及位数
getconf LONG_BIT
上面三个都可以查看位数
下载
wget ftp://ftp.muug.mb.ca/mirror/fedora/epel/6/x86_64/nethogs-0.8.0-1.el6.x86_64.rpm
安装
yum install nethogs -y后面的用tab调出来

clip_p_w_picpath006

安装完后直接运行nethogs就可以了

默认是监视eth0

如果要监视多个网卡

nethogs eth0 eth1

这样把网卡加到后面就行了

加-d参数是指定刷新时间

nethogs -d 1 eth0 eth1

是每一秒更新一次网卡eh0和eth1的流量信息

能显示出PID,用户,进程,网卡,发送流量,接收接收,总流量

clip_p_w_picpath008

按m是切换流量单位

B ,KB ,MB ,KB/SEC

q 和ctrl c 都是退出