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:~$

相关推荐
南棱笑笑生2 个月前
20250307确认荣品PRO-RK3566开发板在Android13下的以太网络共享功能
杂质
南棱笑笑生2 个月前
20250304在Ubuntu20.04的GUI下格式化exFAT格式的TF卡为ext4格式
杂质
南棱笑笑生2 个月前
20250301在chrome中安装CRX猫抓
杂质
南棱笑笑生2 个月前
20250223下载并制作RTX2080Ti显卡的显存的测试工具mats
杂质
南棱笑笑生2 个月前
20250222查看荣品的RK3566核心板在Android13下的GPIO的状态
杂质
南棱笑笑生3 个月前
20250214在ubuntu20.04下使用obs studio录制外挂的1080p的USB摄像头【下载&安装】
杂质
南棱笑笑生3 个月前
20250202在Ubuntu22.04下使用Guvcview录像的时候降噪
杂质
南棱笑笑生3 个月前
20250118拿掉荣品pro-rk3566开发板上Android13下在uboot和kernel启动阶段的Rockchip这个LOGO标识
杂质
南棱笑笑生4 个月前
20250103在Ubuntu20.04.5的Android Studio 2024.2.1.12中跑通Hello World
杂质