# Know your server network usage (Bandwidth)
First, you need to know your network interface name. Execute the command below to get it
Notice: There could be multiple network interfaces. You need to consider the one which has your Server IP along with
For the sake of this example, let's say it is eth0
---------
<OR> with shortcut in a single command:
Code:
var=$(ip a | grep -i BROADCAST | awk '{print $2}')
nload ${var//:/}
Note: You need to install '
nload' package first. For Ubuntu users, it can be installed with the following command:
sudo apt update --yes && sudo apt install nload --yes
For Centos users, it can be installed with the following command:
sudo apt update --yes && sudo apt install nload --yes
Screenshot:
Since the above server has a 1Gbps connection port
And as per the given time, it utilizing only 380 Mbps for outgoing traffic & 5 Mbps for incoming traffic
So, I can rest assure, don't need to upgrade the port to a 10Gbps connection.