Get your MAC address with the command AWK under Ubuntu

January 2017


Get your MAC address with the command AWK under Ubuntu





With this command line you can easily retrieve the address MAC of your NIC.

$ Ifconfig | awk '/ ^ eth0 / {print $ 5}'


A definition is needed on the term MAC address: this is a physical address of a network interface specified by the manufacturer which can uniquely identify a machine on a LAN.

The MAC address is a unique physical ID cards for all networks worldwide. It is registered permanently in ROM at the Factory.

Related


Published by aakai1056. Latest update on November 1, 2010 at 07:34 AM by aakai1056.
This document, titled "Get your MAC address with the command AWK under Ubuntu," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).