In Ubuntu, with command ifconfig -a
, I obtain all the information about my ethernet/wifi interfaces.
But I need to obtain as output only the MAC address, like:
ab:cd:ef:12:34:5657:89:12:34:ac:2312:34:56:ab:cd:ef
How can I obtain this?
In Ubuntu, with command ifconfig -a
, I obtain all the information about my ethernet/wifi interfaces.
But I need to obtain as output only the MAC address, like:
ab:cd:ef:12:34:5657:89:12:34:ac:2312:34:56:ab:cd:ef
How can I obtain this?