To list all network devices using ethtool, you can use the following command:
for i in `ls /sys/class/net/`;
do
echo $i;
sudo ethtool -i $i;
echo "------";
done
This will display information about each network device installed on your system, including driver information, firmware version, and bus information. Note that you will need to run this command with root privileges using the sudo
command.
Top comments (0)