How to view real-time network card speed on Linux?

In Linux systems, you can use the following command to view the real-time rate of the network card:

  1. Use the ifstat command:
  2. Firstly, make sure that the ifstat tool is installed on your system. If it is not installed, you can use package managers like apt-get (Debian/Ubuntu) or yum (CentOS/RHEL) to install it.
  3. To view the real-time speed of all network interfaces, execute the following command: ifstat.
  4. If you only want to view the real-time speed of a specific network card, you can use the following command, replacing eth0 with the name of the network card you want to view: ifstat -i eth0
  5. Use the iftop command:
  6. Make sure that the iftop tool is installed on your system. If it is not installed, you can use package managers such as apt-get (Debian/Ubuntu) or yum (CentOS/RHEL) to install it.
  7. Use the following command to monitor the real-time speed of all network interfaces: iftop.
  8. You can use the following command to view the real-time speed of a specific network card, replacing eth0 with the name of the network card you want to view: iftop -i eth0.
  9. Use the iptraf command:
  10. Make sure that the iptraf tool is installed on your system. If it is not installed, you can use package managers like apt-get (Debian/Ubuntu) or yum (CentOS/RHEL) to install it.
  11. To start iptraf, simply execute the following command: iptraf.
  12. Next, follow the prompts on the command line to select the appropriate option to view the real-time speed of the network card.

These tools can help you monitor the speed of your network card in real time so that you can understand the situation of network traffic.

bannerAds