In Unix-like systems, you can use top to view system resources, processes, memory usage and other information. To view network status, you can use tools such as netstat and nmap. To see real-time network traffic, monitor TCP/IP connections, etc., you can use iftop.
1. What is iftop?
iftop is a real-time traffic monitoring tool similar to top.
Official website: http://www.ex-parrot.com/~pdw/iftop/
Second, what is the use of iftop?
iftop can be used to monitor the real-time traffic of the network card (you can specify the network segment), reverse-resolve the IP, display the port information, etc. The details will be explained in the following usage parameters.
Three, install iftop
Installation method 1, compile and install
If you compile and install, you can download the latest source package from iftop official website.
Before installing, you need to have the basic environment required for compilation, such as make, gcc, autoconf, etc. Installing iftop also requires installing libpcap and libcurses.
Installing required dependencies on CentOS:
yum install flex byacc libpcap ncurses ncurses-devel libpcap-devel
Installing required dependencies on Debian:
apt-get install flex byacc libpcap0.8 libncurses5
Download iftop
wget http://www.ex-parrot.com/pdw/iftop/download/iftop-0.17.tar .gz
tar zxvf iftop-0.17.tar.gz
cd iftop-0.17
./configure
make && make install< Br>
Installation method 2: (lazy method, the easiest)
Direct the above steps
CentOS system:
yum install flex byacc libpcap ncurses ncurses -devel
wget ftp://fr2.rpmfind.net/linux/dag/redhat/el5/en/i386/dag/RPMS/iftop-0.17-1.el5.rf.i386.rpm
rpm -ivh iftop-0.17-1.el5.rf.i386.rpm
Debian system running: apt-get install iftop
IV, run iftop
Direct Run: iftop
The effect is as follows:
This tutorial gives examples of how to provide messages/dialogs in Bash Shell scripts using tools l
A flash drive is one of the most useful tools a person can have. With it, you can back up critical d
First time when the basic network configuration is 1. Check the network mac address first[root@cento
The Linux boot file is stored in the grub.conf configuration file in the /boot/grub/directory. 1.
Linux prompt bash:command not found
Mouse wheel problem solving after installing Ubuntu in VMware
How to make Squid display local time
Manage your app with Laravel+Grunt+Bower
Graphic mode and text mode switch between Linux installations
What if Linux forgets the password?
Synchronization in the Linux kernel Knowledge
Windows7 system optimization makes the system more secure (1)
Win10 IE11 when playing repeatedly /two how to solve?
Decompress multiple files with one password? WinRAR password management function introduction
Win10 system how to achieve timed shutdown through commands
How to write a virus with Visual Basic
Win7 full screen to see the black border of the video frame, what should I do? Solution introduction
How to solve the instability of Win7 through FireWire FPS?
How to close the win7 system firewall