![]() ![]() If you’re having any issues with this, you may want to just go with the About This Mac approach instead, or have your Mac actually read the serial number to you which is possible from the System Profiler application. Just as the new versions, if you just grep for “Serial Number” you’ll be presented with serial numbers to other hardware included in the Mac, which is why the “r (system)” qualifier is included. The command results will look something like this:Īgain, the alphanumeric string after “Serial Number (system)” is the serial number. Querying Mac Serial Number by Command Line in Older Mac OS X Releasesįor querying the systems serial number in even older versions of Mac OS X, including Snow Leopard, Mt Lion, Lion, and before, use the following system_profiler and grep string: The serial number will always appear as an alphanumeric string alongside “Serial Number (system)”, if you simply grep for “serial” you’ll find a huge number of returns that are unrelated to the systems actual serial number, thus we don’t do that. $ system_profiler |grep "Serial Number (system)" ![]() The results for this string will look something like the following: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |