Quantcast
Channel: Output only MAC address on Ubuntu - Ask Ubuntu
Viewing all articles
Browse latest Browse all 9

Output only MAC address on Ubuntu

$
0
0

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?


Viewing all articles
Browse latest Browse all 9

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>