Created
January 25, 2017 16:27
-
-
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
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
#!/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