It's at /sys/class/net/eth0/address (or more precisely /sys/devices/pciXXXX:XX/XXXX/net/eth0/address where the XXX is your PCI bus ID, but this varies between systems).
(Incidentally, I found this with find /sys -name eth0 and looking at the files in the directories identified.)
It's at
/sys/class/net/eth0/address
(or more precisely/sys/devices/pciXXXX:XX/XXXX/net/eth0/address
where the XXX is your PCI bus ID, but this varies between systems).(Incidentally, I found this with
find /sys -name eth0
and looking at the files in the directories identified.)It's also available via
ifconfig
:Or if you want just the MAC address:
if you can install
moreutils
package, there is aifdata
tool. Description says:Here's an example: