Skip to content

Instantly share code, notes, and snippets.

@mpaskalev
Last active April 28, 2017 08:29
Show Gist options
  • Save mpaskalev/6040d8ccab1f115962527411de690eb2 to your computer and use it in GitHub Desktop.
Save mpaskalev/6040d8ccab1f115962527411de690eb2 to your computer and use it in GitHub Desktop.
Get all network interfaces on a Unix machine and settings for each of them
cat /proc/net/dev | grep -Eo '(^[^\:]+)\:' | sed -e 's/^/ethtool/g' | sed -e 's/://g' | while read a; do $a; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment