【Ubuntu】操作 - 网络流量监控

Posted by 西维蜀黍 on 2021-03-26, Last Modified on 2021-09-21

iftop

$ sudo apt-get install iftop

Usage

$ sudo iftop

# Show the bandwidth usage of a given interface:
$ sudo iftop -i <interface>

# Show the bandwidth usage with port information:
$ sudo iftop -P

# Do not show bar graphs of traffic:
$ sudo iftop -b

# Do not look up hostnames:
$ sudo iftop -n

Reference