Skip to content

Instantly share code, notes, and snippets.

@nsteele
Created January 25, 2017 16:27
Show Gist options
  • Save nsteele/56620042a9d85d85bbf2cb31831781e2 to your computer and use it in GitHub Desktop.
Save nsteele/56620042a9d85d85bbf2cb31831781e2 to your computer and use it in GitHub Desktop.
Discover MAC address of network device, for `udev` rule writing or other purposes
#!/bin/bash
sudo lshw -C network
# to see the default logical names of the network interfaces
sudo lshw -short -C network
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment