Generate a Unique ID (UUID/GUID)

      uuidgen [-hdr]

   -hdr      Emit CoreFoundation CFUUID-based source code for using the uuid in a header.

The UUID is printed to standard output as a hyphen-punctuated ASCII string of the form:
(in printf(3) format "%08X-%04X-%04X-%04X-%012X"),
unless the -hdr option is given, in which case a fragment of source code is output.

The use of a UUID as the primary key in a database should be avoided as it will typically result in an (approx) 30 X reduction in performance compared to an integer. [ref]

“Be an individual. Be unique. Stand out. Make noise. Make someone notice” ~ Jon Bon Jovi

Related macOS commands

set - Set a shell variable = value

Copyright © 1999-2024 SS64.com
Some rights reserved