linux 下查看网速(网络速度)的方法 (不需要安装任何软件)

sudo watch -n 1 "/sbin/ifconfig eth0 | grep -E \"字节|数据包\""

若是英文版linux:

sudo watch -n 1 "/sbin/ifconfig eth0 | grep -E \"bytes|packets\""

 

也可以不抓packets

sudo watch -n 1 "/sbin/ifconfig eth0 | grep bytes"

 

 

 

如果实在想看更好一点的界面,可以使用 bmon:

bmon - shows multiple interfaces at once

slurm - has nice colored graphs

tcptrack - A favorite. Tells how much bandwidth is being used and also what protocol (service/port) and destination the transmission is taking place to. Very helpful when you want to know exactly what is using up your bandwidth

sudo apt-get install bmon slurm tcptrack

 

posted @ 2015-09-09 16:06  微信公众号--共鸣圈  阅读(912)  评论(0编辑  收藏  举报