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