Table of Contents
Introduction and How to use Iftop on Ubuntu 20.04
2024/10/29
This tutorial provides a step-by-step guide on using Iftop on Ubuntu 20.04. Iftop is a software tool that allows you to analyze data transfer on your server network. By utilizing Iftop’s unique capabilities, you can easily stay informed about server activities that may occur without your knowledge. Our primary objective in this article is to familiarize you with Iftop and teach you how to effectively use it on Ubuntu 20.04. If you are considering purchasing a VPS server, we recommend exploring the Linux VPS packages offered by NeuronVM.
Introduction to Iftop
Iftop is a tool for viewing incoming and outgoing traffic between network nodes. You can use this tool on the Linux operating system. It runs on the command line and is similar to the tool mentioned above. The difference is that the top command displays the number of resources used, such as RAM and CPU, but the Iftop command displays the selected network monitor and consumed traffic. The next section will help you to Install Iftop on Ubuntu 20.04.How to Install Iftop on Ubuntu 20.04
In this section, we will explore the installation process of Iftop on Ubuntu 20.04. The following commands can be executed in sequence to achieve this. To begin, it is important to update the package repository by using the following command:sudo apt-get update -yYou can Install Iftop by executing the command below:
sudo apt-get install -y iftopNow that we installed Iftop, it’s time to see how we can use Iftop on Ubuntu 20.04!
Tutorial: Use Iftop on Ubuntu Linux
Let’s see how we can use Iftop on Ubuntu 20.04. Using this tool is very easy. Just follow the steps below. Open the terminal and type iftop. You should have the root privileges to see the bandwidth of the first network interface. Then press Q to exit the iftop command output.iftop
iftop -i eth0
iftop -i eth0 -BIn the command above, B must be typed in capital letters.
iftop -i eth0 -P -N
iftop -F YourDesiredIPAddressIf you need more information on Iftop and how it works, you can use the following command:
man iftop
Conclusion
As previously stated, Iftop is a tool utilized for monitoring the current bandwidth on a network interface. By listening to network traffic on a specific interface, it presents a table that showcases the current bandwidth between host pairs. It is important to note that Iftop should be executed by either a root user or a user with adequate privileges to effectively monitor network bandwidth. If you had any other questions, please feel free to contact us in the comment section.
Tags
You might like it
Leave a reply
Last Comments
Show More