Do you know a single line command to capture NIC speed of the primary interface of the server.For example, for eth0Get hostname using uname -nGet its IP using nslookup `uname -n`Search for the IP in ifconfig output to know on which interface it's configuredUsing ethtool <interface captured in above command> | grep -i speedCan all above command be executed in single command?
Using single command to find NIC speed
linux;shell script;command line