Knowing the speed of the Ethernet network adapter can be useful in many situations. For example, It lets you see if you're using all the available bandwidth. Additionally, if you're considering upgrading your network, you can check if your current Ethernet adapter is sufficient or if you need to replace it. This tutorial shows how to get Ethernet network adapter speed on Linux.
The /sys/class/net
directory holds details about the network interfaces on the system. The speed of the Ethernet network adapter can be found in the /sys/class/net/<interface>/speed
file.
For example, to check the speed of the ens33
network interface, use the following command:
cat /sys/class/net/ens33/speed
Output example:
1000
Leave a Comment
Cancel reply