Quantcast
Viewing all articles
Browse latest Browse all 9

Answer by user352726 for Output only MAC address on Ubuntu

As some have commented, ifconfig is deprecated in favor of the ip command. So combining the various solutions and comments, I'd use:

$ LANG=C ip link show | awk '/link\/ether/ {print $2}'FF:FF:FF:FF:FF:FF

Viewing all articles
Browse latest Browse all 9

Trending Articles



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