1.工具一:slurm
安装
sudo apt-get install slurm (Ubuntu系统)查看网速命令
slurm -i eth0 (etho为网卡名)
*******************************************************************************************************
xiabinwei@XIABINWEI:/etc$ sudo apt-get install slurm
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
slurm
0 upgraded, 1 newly installed, 0 to remove and 9 not upgraded.
Need to get 18.8 kB of archives.
After this operation, 87.0 kB of additional disk space will be used.
Get:1 http://cn.archive.ubuntu.com/ubuntu/ trusty/universe slurm amd64 0.4.0-1 [18.8 kB]
Fetched 18.8 kB in 0s (25.4 kB/s)
Selecting previously unselected package slurm.
(Reading database ... 207864 files and directories currently installed.)
Preparing to unpack .../slurm_0.4.0-1_amd64.deb ...
Unpacking slurm (0.4.0-1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up slurm (0.4.0-1) ...
查看网速:
xiabinwei@XIABINWEI:/etc$ slurm -i eth0
发现无法得到网速,Ubuntu 中,通常有线网卡为eth0,无线网卡则为wlan0,后续增加的以此类推(可能某些无线网卡型号命名为eth1,而非wlan0)。 ifconfig简介 ifconfig 是一个用来查看、配置、启用或禁用网络接口的工具,这个工具极为常用的(说的是喜欢动命令的人……)。 查看
Ubuntu 中,通常有线网卡为eth0,无线网卡则为wlan0,后续增加的以此类推(可能某些无线网卡型号命名为eth1,而非wlan0)。
所以使用
slurm -i wlan0
2.工具二:nload
ubuntu的安装可以使用apt进行,其他系统安装过程如下
wget http://www.roland-riegel.de/nload/nload-0.7.2.tar.gz
tar zxvf nload-0.7.2.tar.gz
cd nload-0.7.2
./configure;make;make install
安装完成后,直接用nload (也可后面跟上网卡号查看指定网卡号)
-u参数可以指定显示的网速的单位,如nload -u M是以MB为单位,nload -u K是以KB为单位
*******************************************************************************************************
3.工具三:IPTraf
IPTraf功能比上述的更强大,可以监控所有的流量,IP流量,按协议分的流量,还可以设置过滤器等
源码安装
wget ftp://iptraf.seul.org/pub/iptraf/iptraf-3.0.0.tar.gz
tar zxvf iptraf-3.0.0.tar.gz
cd iptraf-3.0.0
./Setup