uuidgen

Generate a Unique ID (UUID/GUID)

Syntax 
      uuidgen [-hdr]

Key
   -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:
EEF45689-BBE5-4FB6-9E80-41B78F6578E2
(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