Gice

Technology and General Blog

“iftop” is a community monitoring command in Linux that displays actual-time data about your network bandwidth usage. This command can effortlessly be mounted on any Linux distribution and can be applied extremely conveniently. This report will be primarily based on the set up approach of this command, followed by a couple of of its use instances.

Setting up the “iftop” Command in Linux:

Due to the fact the “iftop” command is not put in by default on Linux, hence, we will initial put in it with the next command:

When the “iftop” command is set up on your Linux program, you will be able to use it to look at your community bandwidth utilization.

Syntax of the “iftop” Command in Linux:

The syntax of the “iftop” command is as follows:

These options can be explored by hunting at the assist guide of the “iftop” command in the method revealed beneath:

The assistance guide of the “iftop” command is revealed in the pursuing graphic:

Illustrations of the “iftop” Command in Linux:We will be discovering some of the choices that can be utilized with the “iftop” command in the illustrations discussed below:

Case in point # 1: Look at the Bandwidth Use in Linux:

If you merely want to verify the community bandwidth use of your machine, then you can use the “iftop” command in the adhering to way:

When you execute this command, it will get you to a new interface where by it will present you all of its calculations, as proven in the graphic under:

You will be capable to exit this interface by urgent Ctrl+ C, as proven in the pursuing graphic:

Illustration # 2: Display screen the Bandwidth in Bytes in Linux:

If you want to display your network bandwidth in Bytes, then you can modify the “iftop” command as follows:

All over again, you will be taken to a new interface on the execution of this command in which you will be equipped to see the bandwidth in Bytes as shown in the impression beneath:

You will be able to exit this interface by pressing Ctrl+ C, as revealed in the subsequent impression:

 

Example # 3: Clearly show Port Numbers along with Hostnames in Linux:

If you also want the port numbers to be displayed together with the hostnames in the output, then you can use the underneath-shown variation of the “iftop” command:

You can quickly see from the graphic that now the port numbers are shown alongside with the hostnames in the output of the “iftop” command.

You will be in a position to exit this interface by urgent Ctrl+ C, as shown in the adhering to picture:

Illustration # 4: Type the Output by Resource Address in Linux:

If you want the output of the “iftop” command to be sorted by the resource handle, then you can use this command in the way revealed below:

Managing the “iftop” command in this method will sort the output in accordance to the resource deal with as demonstrated in the image that follows:

You will be ready to exit this interface by urgent Ctrl+ C, as proven in the following image:

Case in point # 5: Type the Output by Desired destination Address in Linux:

If you want the output of the “iftop” command to be sorted by the spot tackle, then you can use this command in the way demonstrated beneath:

$ sudo iftop –o spot

Operating the “iftop” command in this method will type the output in accordance to the desired destination tackle as revealed in the graphic that follows:

You will be able to exit this interface by urgent Ctrl+ C, as demonstrated in the next graphic:

Summary:

By going by means of today’s guideline, you will have a piece of good information about using the “iftop” command in Linux. You can also examine its other illustrations using its different possibilities introduced to you in its support guide.

Leave a Reply

Your email address will not be published. Required fields are marked *