Here’s a one liner that is really useful when you need to quickly confirm the link speed for network interfaces on your system.
The beauty of this command is that you can run it as a regular user:
bash-3.00$ kstat -p | grep link_speed e1000g:0:Port Stats:link_speed 1000 e1000g:1:Port Stats:link_speed 1000