Skip to content

Instantly share code, notes, and snippets.

@jldupont
Created March 24, 2011 12:30
Show Gist options
  • Save jldupont/884970 to your computer and use it in GitHub Desktop.
Save jldupont/884970 to your computer and use it in GitHub Desktop.
Retrieve MAC address of eth0 (bash)
ip link | grep "link/ether" | awk -F" " '{print $2}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment