Skip to content

Instantly share code, notes, and snippets.

@wmhaynes
Created August 7, 2014 17:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wmhaynes/ce35cef9494d2340c2fe to your computer and use it in GitHub Desktop.
Save wmhaynes/ce35cef9494d2340c2fe to your computer and use it in GitHub Desktop.
Show ethernet ports available on a linux device
ip link show | grep ": eth" | cut -d ':' -f2 | awk -F: '{print $0}' | awk '{print $1}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment