For example the command below used to monitor bandwidth on the wireless interface on the test computer. Then use the -i flag to specify the interface you want to monitor. Monitor Linux Network Bandwidth Real Time Monitor Linux Network Interfaceįirst run the following ifconfig command or ip command to find all attached network interfaces on your Linux system. Sample output of iftop command which shows bandwidth of default interface as shown below. Once installation done, go to your console and run the iftop command without any arguments to view bandwidth usage of default interface, as shown in the screen shot below.
Other Linux distributions, can download iftop source package using wget command and compile it from source as shown.
On Fedora distribution, iftop is also available from the default system repositories to install using the following command. On RHEL/CentOS, you need to enable the EPEL repository, and then install it as follows. Iftop is available in the official software repositories of Debian/Ubuntu Linux, you can install it using apt command as shown. # dnf -y install libpcap libpcap-devel ncurses ncurses-devel # yum -y install libpcap libpcap-devel ncurses ncurses-devel $ sudo apt install libpcap0.8 libpcap0.8-dev libncurses5 libncurses5-dev libncurses : a programming library that provides an API for building text-based interfaces in a terminal-independent way.įirst start by installing libpcap and libncurses libraries using your Linux distribution package manager as shown.libpcap : library for capturing live network data.
In this post we are going to see the installation and how to use IFTOP with examples in Linux. Iftop shows a real time updated list of network usage bandwidth every 2, 10 and 40 seconds on average. It will show a quick overview of network activities on an interface. In this article we have came up with another excellent program called Interface TOP (IFTOP) is a real time console-based network bandwidth monitoring tool. In our earlier article, we have reviewed the usage of TOP Command and it’s parameters.