In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "what Linux network tools do you have". In daily operation, I believe many people have doubts about what Linux network tools they have. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful for you to answer the doubts about "what Linux network tools are there?" Next, please follow the editor to study!
If you want to monitor the network on your system, it is very practical to use command-line tools, and for Linux users, there are many ready-made tools, such as: nethogs, ntopng, nload, iftop, iptraf, bmon, slurm, tcptrack, cbm, netwatch, collectl, trafshow, cacti, etherape, ipband, jnettop, netspeed and speedometer.
Given that there are so many Linux experts and developers in the world, there are obviously other network monitoring tools, but I'm not going to include them all in this tutorial.
The tools listed above have their own unique features, but in the final analysis, they all monitor network traffic in a variety of different ways. For example, nethogs can be used to show the bandwidth usage of each process, in case you want to know which application is consuming your entire network resources; iftop can be used to show the bandwidth usage of each socket connection, and tools like nload can help you get information about the entire bandwidth.
1) nethogs
Nethogs is a free tool, and it is very convenient to find out which PID (process identifier, process ID) is causing trouble to your network traffic. It groups bandwidth on a per-process basis, rather than dividing traffic on a per-protocol or per-subnet basis as most tools do. It's feature-rich, supports both IPv4 and IPv6, and I think it's the best program to do it if you want to determine which program is consuming all your bandwidth on your Linux host.
A Linux user can use nethogs to display the TCP download and upload rates of each process, and you can use the command nethogs eth0 to monitor a specified device. The eth0 above is the name of the device you want to get information about. You can also get information about the transfer rate of the data being transmitted.
Nethogs is very easy for me to use, perhaps because I like it so much that I always use it on my Ubuntu 12.04 LTS machine to monitor my network bandwidth.
For example, to use promiscuous mode to sniff, you can use the option-p like the command shown below:
Nethogs-p wlan0
If you want to learn more about nethogs and explore it in depth, don't hesitate to read our entire tutorial on this network bandwidth monitoring tool.
(LCTT translation note: for more information about nethogs, please refer to: https://linux.cn/article-2808-1.html)
2) nload
Nload is a console application that can be used to monitor network traffic and bandwidth usage in real time. It also visualizes traffic by providing two easy-to-understand charts. This wonderful network monitoring tool can also switch monitored devices during the monitoring process, which can be done by pressing the left and right arrows.
As you can see in the screenshot above, the diagram provided by nload is very easy to understand. Nload provides useful information, as well as information such as the total amount of data being transmitted and the minimum / maximum network rate.
What's even cooler is that you just need to run the nload tool directly, and this command is very short and easy to remember:
Nload
I'm pretty sure that our detailed tutorials on how to use nload will help new Linux users and even veterans who are looking for information about nload.
(LCTT translation note: for updated information about nload, please refer to: https://linux.cn/article-5114-1.html)
3) slurm
Slurm is another Linux network load monitoring tool, it uses a good ASCII chart to display the results, it also supports many buttons for interaction, such as c to switch to classic mode, s to switch to sub-graph mode, r to redraw the screen, L to enable TX/RX lights (note: TX, send traffic; RX, receive traffic), m to switch between classic sub-graph mode and large image mode, Q to exit slurm.
There are many other buttons available in the network load monitoring tool slurm, and you can easily learn them in the man manual using the following commands.
Man slurm
Slurm can be found in the official software repositories of Ubuntu and Debian, so users of these distributions can easily download it using the apt-get installation command as shown below:
Sudo apt-get install slurm
We have introduced the use of slurm in a tutorial, so don't forget to share this knowledge with other friends who use Linux.
4) iftop
Iftop is a very useful tool when you want to show the bandwidth usage of each host connected to the network card. According to the man manual, iftop listens for network traffic on a specified interface or the first interface it can find (if nothing special, it should be an external interface) and displays a table showing the current bandwidth usage between a pair of hosts.
Ubuntu and Debian users can easily install iftop on their machines by using the following command in the virtual terminal:
Sudo apt-get install iftop
On your machine, you can install iftop via yum using the following command:
Yum-y install iftop
(LCTT translation note: for more information about nload, please refer to: https://linux.cn/article-1843-1.html)
5) collectl
Collectl can be used to collect data describing the current state of the system, and it supports the following two modes:
Record mode allows you to read data from a running system and then either display it in the terminal or write it to one or more files or a socket.
Playback mode
According to the man manual, in this mode, the data is read from one or more data files generated by the recording mode.
Ubuntu and Debian users can install colletcl on their machines using their default package manager. The following command will do the job for them:
Sudo apt-get install collectl
You can also use the following command to install collectl, because for these distributions (note: this refers to the distribution using yum as the package manager), collectl is also included in their official software repository:
Yum install collectl
(LCTT translation note: for more information about collectl, please refer to: https://linux.cn/article-3154-1.html)
This article was originally translated by LCTT and launched by Linux in China. Do you also want to join the ranks of translators and make some contributions to open source? Welcome to LCTT!
Translation work and translation publication are for learning and communication purposes only. Translation work is in accordance with the CC agreement. If our work infringes on your rights and interests, please contact us in time.
You are welcome to reprint in accordance with the provisions of the CC agreement. Please mark and retain the original / translation link and the author / translator in the text.
The article only represents the author's knowledge and opinions. If you have different views, please wait in line downstairs to complain: d
At this point, the study on "what Linux network tools are available" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.