The thing about modern graphical operating systems is that finding the MAC address of the computer’s network adapter is often quite counter-intuitive. Fortunately, the command line makes it easy. To find the MAC address on a Ubuntu 12.04 Precise Pangolin system, use this command at the command line prompt:
This will bring up a great deal of information about the network interfaces on your Ubuntu system, including the MAC address of your Ethernet adapter. If your computer has only one Ethernet adapter, it will show up as eth0. The adapter’s MAC address will be the line labeled HWaddr:
However, you can make finding the MAC address even easier by parsing the ifconfig command’s output with the grep command, like this:
ifconfig | grep HWaddr
This will only bring up the line of ifconfig’s output with the MAC address.