How can I find out my WiFi adapter's MAC address on Ubuntu Linux?

Solution 1:

The command

ip addr

will tell. ifconfig is a tool obsolete since 2001.

Solution 2:

Combining the answer from @user562374 with a little scripting:

ip addr show $(awk 'NR==3{print $1}' /proc/net/wireless | tr -d :) | awk '/ether/{print $2}'

The wireless interface is shown in /proc/net/wireless and that is used to extract the MAC address from the ip addr output.

Solution 3:

You will want to look at iwconfig and ifconfig for information about your ethernet controllers. iwconfig is geared towards wireless.