Posts Learn Components Snippets Categories Tags Tools About
/

How to get MAC Address on Macbook using the Command Line

Learn how to get a MAC Address on Macbook using the Command Line

Created on May 23, 2022

73 views

Getting MAC Address on MacOS Using Terminal


To get the MAC Address on a Macbook you can simply call one line command below.
ifconfig en0 | awk '/ether/{print $2}'
By calling the ifconfig command like above you will get the MAC Address such as the following format.
aa:bb:cc:dd:ee:ff

Alternative on Getting MAC Address on MacOS From System Preference


For an alternative approach (using GUI) you can follow the steps below.
  1. Open System Preferences
  2. Visit Network and press Advanced
  3. Open the "Hardware" tab and see MAC Adderss

If you like our tutorial, do make sure to support us by being our Patreon or buy us some coffee ☕️

)