Tagged Questions
19
votes
3answers
587 views
Best way to get the MAC of eth0?
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 ...