当前位置: 首页 > 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:~$ 

相关文章:

  • 耘想WinNAS:企业级NAS解决方案的终极选择
  • JavaScript 代码搜索框
  • 自动驾驶-一位从业两年的独特视角
  • LeetCode —— 572. 另一棵树的子树
  • VS Code 插件Git History Diff 使用
  • 数学建模论文手的学习日常01
  • 数据接收全流程图(物理网卡 → 应用层)
  • 90.如何将Maui应用安装到手机(最简) C#例子 Maui例子
  • 游戏引擎学习第249天:清理调试宏
  • CMake解析参数用法示例
  • 猿人学web端爬虫攻防大赛赛题第13题——入门级cookie
  • wordpress网站速度慢如何优化
  • 基于Docker的内网穿透实战:frp 0.68 + Nginx最佳实践
  • 【大模型面试每日一题】Day 4:低资源语言建模方案
  • spring boot中@Validated
  • TIME_WAIT状态+UDP概念及模拟实现服务器和客户端收发数据
  • Java Properties 遍历方法详解
  • 【C++】频繁分配和释放会产生内存碎片
  • Can‘t create thread to handle bootstrap
  • 排序算法——选择排序
  • 小核酸药物企业瑞博生物递表港交所,去年亏损2.81亿元
  • “80后”商洛市委副书记、市政府党组副书记赵孝任商洛市副市长
  • 莫名的硝烟|“我们最好记住1931年9月18日这个日子”
  • 言短意长|政府食堂、停车场开放的示范效应
  • 上海开花区域结果,这项田径大赛为文旅商体展联动提供新样本
  • 人民日报评论员:汇聚起工人阶级和广大劳动群众的磅礴力量