commands.sh

uuidgen

linuxmacos

Generate unique identifiers (UUIDs). See also: `uuid`.

More info →

Options (5)

-r, --randomboolean

Create a random UUIDv4

Example: uuidgen {{[-r|--random]}}
-t, --timeboolean

Create a UUIDv1 based on the current time

Example: uuidgen {{[-t|--time]}}
-s, --sha1boolean

Create a UUIDv5 of the name with a specified namespace prefix

Example: uuidgen {{[-s|--sha1]}} {{[-n|--namespace]}} {{@dns|@url|@oid|@x500}} {{[-N|--name]}} {{object_name}}
-n, --namespaceboolean

Create a UUIDv5 of the name with a specified namespace prefix

Example: uuidgen {{[-s|--sha1]}} {{[-n|--namespace]}} {{@dns|@url|@oid|@x500}} {{[-N|--name]}} {{object_name}}
-N, --nameboolean

Create a UUIDv5 of the name with a specified namespace prefix

Example: uuidgen {{[-s|--sha1]}} {{[-n|--namespace]}} {{@dns|@url|@oid|@x500}} {{[-N|--name]}} {{object_name}}

Examples (3)

Create a random UUIDv4

uuidgen [-r|--random]

Create a UUIDv1 based on the current time

uuidgen [-t|--time]

Create a UUIDv5 of the name with a specified namespace prefix

uuidgen [-s|--sha1] [-n|--namespace] @dns|@url|@oid|@x500 [-N|--name] object_name
made by @shridhargupta | data from tldr-pages