Command iftop to check bandwidth usage, netstat to view interface statistics reports, and other tools BANDWIDTHD, speedometer, nethogs, Darkstat, Jnettop, Ifstat, Iptraf, Nload and ntop and so on. But these tools are statistical card access data, if you want to find a like 360 security guard on Windows, can be in real-time statistics per program network bandwidth utilization, then nethogs is the only tool you need.
1. Download
Address: http://jaist.dl.sourceforge.net/project/nethogs/nethogs/0.8/nethogs-0.8.0.tar.gz
Download Install package: nethogs-0.8.0.tar.gz (38.0 KB)
2. Installation
Yum install-y gcc gcc-c++ libpcap* libpcap-devel* ncurses*
TAR-ZXVF nethogs-0.8.0.tar.gz
CD Nethogs
Make && make install
3. Questions
If nethogs occurs when executing: IOCTL failed while establishing local IP for selected device eth0. Specify the device on the command line.
Need to find the right interface: IP route Show | grep default to see if it's eth0 or eth1.
Then in execution: Nethogs eth1
Original question: Https://askubuntu.com/questions/261024/nethogs-ioctl-failed-while-establishing-local-ip
4. Command line Parameters
The following is the Nethogs command line parameter, with '-d ' to add the refresh frequency parameter, ' device name ' is used to detect the bandwidth of a given or some device (default is eth0). For example: To set the refresh rate for 5 seconds, type the following command:
# nethogs-d 5
If only the network bandwidth used to monitor the device (eth0) can use the following command:
# nethogs Eth0
If you want to monitor both the eth0 and ETH1 interfaces, use the following command:
# nethogs Eth0 eth1
Additional parameters and usage:
-d:delay for Refresh Rate,default is 1.
-h:display available commands usage.
-p:sniff in promiscious mode (not recommended).
-t:tracemode.
-b:bughunt mode-implies TraceMode.
-v:prints Version Info.
Nethogs Interactive Control
Here are some useful interactive controls for Nethogs (keyboard shortcuts):
M:cycle between display modes (KB/S, KB, b, MB)
R:sort by ' received '
S:sort by ' sent '
Q:quit
Nethogs-Network traffic monitoring tool