Math-Linux.com

Knowledge base dedicated to Linux and applied mathematics.

Home > Linux > Bash > Fast and easy way to get mac address on Linux

Fast and easy way to get mac address on Linux

All the versions of this article: <English> <français>

VARIABLE="$(cat /sys/class/net/$IFACE/address)"

where IFACE variable is the name of the interface currently defined by ifup or ifdown.

Any message or comments?

comments powered by Disqus