成长值: 15613
2444
2544
7万
管理员
用 iftop、Nethogs 和 vnstat 了解更多关于你的网络连接。 -- Carla Schroder
本文导航 -iftop …… 05% -Nethogs …… 48% -vnstat …… 58%
编译自: https://www.linux.com/learn/intro-to-linux/2017/10/3-simple-excellent-linux-network-monitors 作者: Carla Schroder 译者: geekpi
$ sudo iftop
$ sudo iftop -i wlan0
$ dig A pandora.com [...] ;; ANSWER SECTION: pandora.com. 267 IN A 208.85.40.20 pandora.com. 267 IN A 208.85.40.50
$ ipcalc -b 208.85.40.20 Address: 208.85.40.20 Netmask: 255.255.255.0 = 24 Wildcard: 0.0.0.255 => Network: 208.85.40.0/24
$ sudo iftop -F 208.85.40.20/24 -i wlan0
$ sudo nethogs wlan0 NetHogs version 0.8.1 PID USER PROGRAM DEV SENT RECEIVED 7690 carla /usr/lib/firefox wlan0 12.494 556.580 KB/sec 5648 carla .../chromium-browser wlan0 0.052 0.038 KB/sec TOTAL 12.546 556.618 KB/sec
$ vnstat -i wlan0 Database updated: Tue Oct 17 08:36:38 2017 wlan0 since 10/17/2017 rx: 45.27 MiB tx: 3.77 MiB total: 49.04 MiB monthly rx | tx | total | avg. rate ------------------------+-------------+-------------+--------------- Oct '17 45.27 MiB | 3.77 MiB | 49.04 MiB | 0.28 kbit/s ------------------------+-------------+-------------+--------------- estimated 85 MiB | 5 MiB | 90 MiB | daily rx | tx | total | avg. rate ------------------------+-------------+-------------+--------------- today 45.27 MiB | 3.77 MiB | 49.04 MiB | 12.96 kbit/s ------------------------+-------------+-------------+--------------- estimated 125 MiB | 8 MiB | 133 MiB |
$ vnstat -i wlan0+eth0+eth1
$ vnstat -i wlan1 --delete
$ vnstat -u -i enp0s25 --nick eth0
$ vnstati -s -i wlx7cdd90a0a1c2 -o vnstat.png
您需要 登录 才可以下载或查看,没有帐号?立即注册
使用道具 举报
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|51学通信技术论坛
GMT+8, 2025-1-31 20:43 , Processed in 0.072196 second(s), 32 queries .
Powered by Discuz! X3
© 2001-2013 Comsenz Inc.