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

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

  1. 使用nload

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

安装nload:

sudo apt-get install nload

运行nload:

sudo nload

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

  1. 使用vnstat

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

安装vnstat:

sudo apt-get install vnstat

首次运行前,你需要创建一个数据库:

sudo vnstat -u -i <interface>

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

vnstat -i <interface>

或者查看历史数据:

vnstat -d -i <interface>

  1. 使用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:~$

相关推荐
南棱笑笑生13 天前
20250620在Ubuntu20.04.6下编译KickPi的K7的Android14系统解决缺少libril.so.toc的问题
杂质
南棱笑笑生16 天前
20250613在Ubuntu20.04.6下编译Rockchip的RK3576原厂Android14的SDK【整理编译】
杂质
南棱笑笑生17 天前
20250617在荣品的PRO-RK3566开发板的Android13下解决海罗光电有限公司HL070T58C-05屏在休眠唤醒下无显示的问题
杂质
南棱笑笑生25 天前
20250609在荣品的PRO-RK3566开发板的Android13下解决串口可以执行命令但是脚本执行命令异常的问题
杂质
南棱笑笑生25 天前
20250607在荣品的PRO-RK3566开发板的Android13系统下实现长按开机之后出现插入适配器不会自动启动的问题的解决
杂质
南棱笑笑生1 个月前
20250603在荣品的PRO-RK3566开发板的Android13下的命令行查看RK3566的温度
杂质
南棱笑笑生1 个月前
20250602在荣品的PRO-RK3566开发板的Android13下的uboot启动阶段配置BOOTDELAY为10s
杂质
南棱笑笑生1 个月前
20250602在Ubuntu20.04.6下修改压缩包的日期和时间
杂质
南棱笑笑生1 个月前
20250526给荣品PRO-RK3566的Android13单独编译boot.img
杂质
南棱笑笑生1 个月前
20250520在全志H3平台的Nano Pi NEO CORE开发板上运行Ubuntu Core16.04.3时跑通4G模块EC20
杂质