Created
August 7, 2014 17:13
-
-
Save wmhaynes/ce35cef9494d2340c2fe to your computer and use it in GitHub Desktop.
Show ethernet ports available on a linux device
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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