Model Name: MacBook Air Model Identifier: Mac17,3
I know it's possible to retrive model-identifier by running the command "sysctl hw.model", but is there another key to retrieve the model-name? ("MacBook Air" instead of "Mac17,3")
Model Name: MacBook Air Model Identifier: Mac17,3
I know it's possible to retrive model-identifier by running the command "sysctl hw.model", but is there another key to retrieve the model-name? ("MacBook Air" instead of "Mac17,3")
Thanks for the post, what about to retrieve the friendly model name from the command line, you should use system_profiler.
system_profiler SPHardwareDataType | grep "Model Name"
Or we can just remove the label with:
system_profiler SPHardwareDataType | awk -F': ' '/Model Name/ {print $2}'
Hope this helps.
Resources: https://discussions.apple.com/thread/5988473
https://discussions.apple.com/docs/DOC-250009356
Albert Worldwide Developer Relations.