1. NetHogsNethogs is a network traffic monitoring tool on a terminal. It can display the bandwidth usage of each process, so that you can obtain the network usage more intuitively. It supports IPv4 and IPv6 protocols, local NICs, and PPP connections. # Installation (SEE): sudoapt-getinstallnethogs is available in Ubuntu official sources # Use: sudon
1. NetHogs
Nethogs is a network traffic monitoring tool on a terminal. It displays the bandwidth usage of each process, so that the network usage can be obtained more intuitively. It supports IPv4 and IPv6 protocols, local NICs, and PPP connections.
# Installation (SEE): This program is available in the official Ubuntu source.
Sudo apt-get install nethogs
# Use:
Sudo nethogs eth0
This program requires the root permission. By default, the eth0 Nic is monitored. Therefore, you can directly enter sudo nethogs. If there are multiple NICs, you must specify them.
Linuxidc @ www-linuxidc-com :~ $ Sudo apt-get install nethogs
[Sudo] password for linuxidc:
Reading the package list... complete
Analyzing the dependency tree of the software package
Reading status information... complete
The following [new] software packages will be installed:
Nethogs
0 software packages are upgraded, 1 new software package is installed, 0 software packages are to be uninstalled, and 167 software packages are not upgraded.
Download the 26.6 kB software package.
After decompression, 106 kB of extra space will be consumed.
Get: 1 http://cn.archive.ubuntu.com/ubuntu/ oneiric/universe nethogs i386 0.7.0-3ubuntu1 [26.6 kB]
Download 26.6 kB, 22 seconds (1,161 B/s)
Debconf: the front-end interface cannot be initialized: Dialog
Debconf: (in the dialog box, the screen must be at least 13 rows of height and 31 columns of width .)
Debconf: returned Front-End Interface: Readline
Select the software package nethogs that has been deselected.
(Reading the database... the system currently has 135331 files and directories installed .)
Extracting nethogs (from.../nethogs_0.7.0-3ubuntu1_i386.deb )...
Processing the trigger for man-db...
Debconf: the front-end interface cannot be initialized: Dialog
Debconf: (in the dialog box, the screen must be at least 13 rows of height and 31 columns of width .)
Debconf: returned Front-End Interface: Readline
Setting nethogs (0.7.0-3ubuntu1 )...
Linuxidc @ www-linuxidc-com :~ $