Home / Snippets / How to get MAC Address on Macbook using the Command Line
How to get MAC Address on Macbook using the Command Line cover

How to get MAC Address on Macbook using the Command Line

233

2 years ago

0 comments

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
notion avatar

Alaz

Week-end developer currently experimenting with web, mobile, and all things programming.

Topics:

Frontend

Resource

Average

Average

Support Us

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

Welcome to PostSrc V3

PostSrc Dark Logo

You have to login to favorite this