Is there a more efficient way to retrieve the MAC address of a NIC in Linux?
This works:
ip link show dev eth0 | awk ' /link\/ether/ { print $2 }'
but can it be found via something like:
cat /sys/net/something
|
feedback
|
|
It's at (Incidentally, I found this with | ||||
|
feedback
|
|
It's also available via
Or if you want just the MAC address:
| |||||
feedback
|
|
if you can install
Here's an example:
| |||
|
feedback
|