当前位置: 首页 > news >正文

20250430在ubuntu14.04.6系统上查看系统实时网速

rootroot@ubuntu:~$ sudo apt-get install iftop
【不需要root权限】
rootroot@ubuntu:~$ sudo apt-get install nload
rootroot@ubuntu:~$ sudo apt-get install vnstat
【失败】
rootroot@ubuntu:~$ sudo apt-get install speedtest-cli
rootroot@ubuntu:~$ sudo apt-get install nethogs


20250430在ubuntu14.04.6系统上查看系统实时网速
2025/4/30 15:55


百度:ubuntu14.04查看网速


ubuntu14.04查看网速
在Ubuntu 14.04中查看网速,你可以使用几种不同的方法。下面是一些常用的工具和命令:

1. 使用iftop
iftop是一个基于文本的实时网络流量监控工具,它可以显示哪些主机正在使用你的网络带宽。

首先,你需要安装iftop:

sudo apt-get update
sudo apt-get install iftop
然后,运行iftop:

sudo iftop
这将显示实时的网络流量信息,包括发送和接收的流量。

2. 使用nload
nload是另一个图形界面的实时网络流量监控工具,它可以显示网络接口的上传和下载速度。

安装nload:

sudo apt-get install nload
运行nload:

sudo nload
你将看到一个图形界面显示当前的网络活动。

3. 使用vnstat
vnstat是一个基于文本的实时网络流量监控工具,它可以记录和显示历史网络使用情况。

安装vnstat:

sudo apt-get install vnstat
首次运行前,你需要创建一个数据库:

sudo vnstat -u -i <interface>
其中<interface>是你的网络接口名称(例如eth0或wlan0)。要查看网络流量,运行:

vnstat -i <interface>
或者查看历史数据:

vnstat -d -i <interface>
4. 使用speedtest-cli
如果你想要测试你的互联网连接速度,可以使用speedtest-cli。这不是实时监控工具,但可以用来检查当前的下载和上传速度。

首先,安装speedtest-cli:

sudo apt-get install speedtest-cli
然后,运行测试:

speedtest-cli
这将显示你的下载速度、上传速度和延迟。

结论
选择哪种方法取决于你的具体需求:如果你需要实时监控网络流量,iftop或nload可能更适合;如果你需要查看历史网络使用情况,vnstat是一个好选择;而如果你只是想快速测试你的互联网速度,speedtest-cli会很有帮助。

提示:AI自动生成,仅供参考
收起 

复制

接着问
在Ubuntu系统必行命令需要网络吗
如何在Ubuntu启动界面连网?


参考资料:
https://www.jb51.net/server/329854xop.htm
Ubuntu系统中查看网络速率的几种方法


rootroot@ubuntu:~$ 
rootroot@ubuntu:~$ sudo apt-get install iftop
[sudo] password for rootroot: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  libc6-dbg
Use 'apt-get autoremove' to remove it.
The following NEW packages will be installed:
  iftop
0 upgraded, 1 newly installed, 0 to remove and 52 not upgraded.
Need to get 38.7 kB of archives.
After this operation, 112 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty/universe iftop amd64 1.0~pre2-5 [38.7 kB]
Fetched 38.7 kB in 1s (28.6 kB/s)
Selecting previously unselected package iftop.
(Reading database ... 190697 files and directories currently installed.)
Preparing to unpack .../iftop_1.0~pre2-5_amd64.deb ...
Unpacking iftop (1.0~pre2-5) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up iftop (1.0~pre2-5) ...

rootroot@ubuntu:~$ 
rootroot@ubuntu:~$ iftop
interface: eth0
IP address is: 192.168.3.202
MAC address is: 00:0c:29:6d:34:d0
pcap_open_live(eth0): eth0: You don't have permission to capture on that device (socket: Operation not permitted)
rootroot@ubuntu:~$ 
rootroot@ubuntu:~$ sudo iftop
interface: eth0
IP address is: 192.168.3.202
MAC address is: 00:0c:29:6d:34:d0

rootroot@ubuntu:~$ 


【不需要root权限】
rootroot@ubuntu:~$ 
rootroot@ubuntu:~$ sudo apt-get install nload
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  libc6-dbg
Use 'apt-get autoremove' to remove it.
The following NEW packages will be installed:
  nload
0 upgraded, 1 newly installed, 0 to remove and 52 not upgraded.
Need to get 62.3 kB of archives.
After this operation, 181 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty/universe nload amd64 0.7.4-1 [62.3 kB]
Fetched 62.3 kB in 1s (40.9 kB/s)
Selecting previously unselected package nload.
(Reading database ... 190703 files and directories currently installed.)
Preparing to unpack .../nload_0.7.4-1_amd64.deb ...
Unpacking nload (0.7.4-1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up nload (0.7.4-1) ...
rootroot@ubuntu:~$ 
rootroot@ubuntu:~$ 
rootroot@ubuntu:~$ nload

rootroot@ubuntu:~$ 


rootroot@ubuntu:~$ 
rootroot@ubuntu:~$ sudo apt-get install vnstat
[sudo] password for rootroot: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  libc6-dbg
Use 'apt-get autoremove' to remove it.
Suggested packages:
  vnstati
The following NEW packages will be installed:
  vnstat
0 upgraded, 1 newly installed, 0 to remove and 52 not upgraded.
Need to get 85.3 kB of archives.
After this operation, 242 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty/universe vnstat amd64 1.11-2 [85.3 kB]
Fetched 85.3 kB in 1s (61.9 kB/s) 
Selecting previously unselected package vnstat.
(Reading database ... 190710 files and directories currently installed.)
Preparing to unpack .../vnstat_1.11-2_amd64.deb ...
Unpacking vnstat (1.11-2) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up vnstat (1.11-2) ...
 * Starting vnStat daemon vnstatd                                                                                                                                                                                                    Zero database found, adding available interfaces...
"eth0" added, 100 Mbit bandwidth limit.
-> 1 interface added. Limits can be modified using the configuration file.
                                                                                                                                                                                                                              [ OK ]
Processing triggers for ureadahead (0.100.0-16) ...

rootroot@ubuntu:~$ 
rootroot@ubuntu:~$ vnstat
 eth0: Not enough data available yet.
rootroot@ubuntu:~$ 
rootroot@ubuntu:~$ sudo vnstat
 eth0: Not enough data available yet.
rootroot@ubuntu:~$ 
rootroot@ubuntu:~$ 


【失败】
rootroot@ubuntu:~$ 
rootroot@ubuntu:~$ sudo apt-get install speedtest-cli
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package speedtest-cli
rootroot@ubuntu:~$ 
rootroot@ubuntu:~$ 

http://www.xdnf.cn/news/227071.html

相关文章:

  • 运营岗位选择
  • 多用户远程 Debugger 服务隔离方案技术实践
  • Java使用 MyBatis-Plus 实现前端组装查询语句、后端动态执行查询的功能,
  • 使用vue开发electron
  • Git从入门到精通-第二章-工具配置
  • 软考中级-软件设计师 数据结构(手写笔记)
  • 文献分享:CovEpiAb-冠状病毒免疫表位及抗体数据库
  • HCIP-数据通信datacom认证
  • 【RustDesk 】中继1:压力测试 Python 版 RustDesk 中继服务器
  • 【安全扫描器原理】基于协议的服务扫描器
  • 欧洲分子生物学实验室EMBL介绍
  • 详解具身智能机器人开源数据集:RoboMIND
  • 数字孪生技术十大创新应用场景与工程实践
  • Vue3 Echarts 3D立方体柱状图实现教程
  • 碰一碰发视频源码||客户端开发实战:NFC+低延迟传输技术实现引言
  • 【每日八股】复习 Redis Day3:Redis 的应用
  • 电脑干货:开源免费的QQ空间说说下载工具GetQzonehistory
  • 海外社交软件开发进阶:AI驱动与高可用架构的深度实践
  • Unity3D仿星露谷物语开发40之割草动画
  • 32单片机——独立看门狗
  • OpenCV 图形API(74)图像与通道拼接函数-----合并三个单通道图像(GMat)为一个多通道图像的函数merge3()
  • 前端技巧——性能优化篇
  • 哪些因素会影响远程视频监控的质量?浅述EasyCVR视频智能诊断技术
  • 【AI平台】n8n入门5:创建MCP服务,及vscode调用MCP测试
  • Spring AOP概念及其实现
  • uniapp如何获取安卓原生的Intent对象
  • 基于用户场景的汽车行驶工况构建:数据驱动下的能耗优化革命
  • 游戏引擎学习第249天:清理调试宏
  • ZYNQ MPSOC之PL与PS数据交互DMA方式
  • Android学习总结之算法篇六(数组和栈)