2018-12-20 16:51:49 +00:00
|
|
|
# uuidgen
|
|
|
|
|
|
|
|
> Generate unique identifiers (UUIDs).
|
2021-05-14 13:11:08 +01:00
|
|
|
> See also `uuid`.
|
|
|
|
> More information: <https://manned.org/uuidgen>.
|
2018-12-20 16:51:49 +00:00
|
|
|
|
2021-05-14 13:11:08 +01:00
|
|
|
- Create a random UUIDv4:
|
2018-12-20 16:51:49 +00:00
|
|
|
|
|
|
|
`uuidgen --random`
|
|
|
|
|
2021-05-14 13:11:08 +01:00
|
|
|
- Create a UUIDv1 based on the current time:
|
2018-12-20 16:51:49 +00:00
|
|
|
|
|
|
|
`uuidgen --time`
|
|
|
|
|
2021-05-14 13:11:08 +01:00
|
|
|
- Create a UUIDv5 of the name with a specified namespace prefix:
|
2018-12-20 16:51:49 +00:00
|
|
|
|
2021-05-14 13:11:08 +01:00
|
|
|
`uuidgen --sha1 --namespace {{@dns|@url|@oid|@x500}} --name {{object_name}}`
|