Home > Article > Computer Tutorials > How to check server bandwidth and network usage in Linux system?
To view the bandwidth and network usage of your Linux server, you can use the following commands and tools:
Use the following command to view information about all network interfaces:
ifconfig
This command will display detailed information for each network interface, including the number of packets received and sent, and network usage.
Use the following command to view information about all network interfaces:
ip -s link
This command will display statistics for each network interface, including the number of packets received and sent, and network usage.
First, make sure nload is installed. nload can be installed using the following command:
sudo apt install nload # Debian/Ubuntusudo yum install nload # CentOS/RHEL
Then, run the following command to start nload:
nload
nload will display real-time network traffic information, including the amount of data received and sent, bandwidth utilization, etc.
First, make sure vnstat is installed. vnstat can be installed using the following command:
sudo apt install vnstat # Debian/Ubuntusudo yum install vnstat # CentOS/RHEL
Then, use the following command to set up vnstat to monitor a network interface, such as eth0:
sudo vnstat -u -i eth0
Next, use the following command to view network usage statistics:
vnstat
vnstat will display daily, monthly and yearly received and sent data volume, bandwidth utilization and other details.
By using commands and tools such as ifconfig, ip, nload, and vnstat, you can easily check the bandwidth and network usage of your Linux server. Choose the right tool to monitor and analyze network traffic based on your needs.
The above is the detailed content of How to check server bandwidth and network usage in Linux system?. For more information, please follow other related articles on the PHP Chinese website!