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
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
支付宝扫一扫捐赠
支付宝扫一扫捐赠
微信公众号: 共鸣圈
欢迎讨论,邮件: 924948$qq.com 请把$改成@
QQ群:263132197
QQ: 924948