Last active
August 5, 2022 21:43
-
-
Save wegotoeleven/82e952d8fa09f3dbd3b4293e2f42dcbb to your computer and use it in GitHub Desktop.
Find Mac serial number
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# On the Mac | |
system_profiler SPHardwareDataType | awk '/Serial/ {print $4}' | |
ioreg -l | grep IOPlatformSerialNumber | awk '{print $4}' | sed 's/"//g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment