Sample Header Ad - 728x90

How can I query the hardware UUID of a Mac programmatically from a command line?

11 votes
1 answer
18467 views
The hardware universally unique identifier (UUID) can often be used by developers to associate information unique to a Mac. This identifier will usually persist through OS upgrades or reinstalls, as well as across multiple OSes in multi-boot installations. I would like to be able to retrieve the UUID via a command line in macOS in order to use with a script.
Asked by n8felton (1044 rep)
Nov 8, 2018, 03:43 PM
Last activity: Aug 5, 2023, 05:26 PM