1UUIDGEN(1)                       User Commands                      UUIDGEN(1)
2
3
4

NAME

6       uuidgen - create a new UUID value
7

SYNOPSIS

9       uuidgen [options]
10

DESCRIPTION

12       The uuidgen program creates (and prints) a new universally unique iden‐
13       tifier (UUID) using the libuuid(3) library.  The new UUID  can  reason‐
14       ably  be considered unique among all UUIDs created on the local system,
15       and among UUIDs created on other systems in the past and in the future.
16
17       There are three types of UUIDs which uuidgen can  generate:  time-based
18       UUIDs,  random-based  UUIDs,  and hash-based UUIDs.  By default uuidgen
19       will generate a random-based UUID if a high-quality random number  gen‐
20       erator is present.  Otherwise, it will choose a time-based UUID.  It is
21       possible to force the generation of one of these first two  UUID  types
22       by using the --random or --time options.
23
24       The  third  type of UUID is generated with the --md5 or --sha1 options,
25       followed by --namespace namespace and --name name.  The  namespace  may
26       either  be a well-known UUID, or else an alias to one of the well-known
27       UUIDs defined in RFC 4122, that is @dns, @url,  @oid,  or  @x500.   The
28       name is an arbitrary string value.  The generated UUID is the digest of
29       the concatenation of the namespace UUID and the name value, hashed with
30       the  MD5  or  SHA1  algorithms.   It is, therefore, a predictable value
31       which may be useful when UUIDs are being used as handles or nonces  for
32       more  complex  values  or values which shouldn't be disclosed directly.
33       See the RFC for more information.
34

OPTIONS

36       -r, --random
37              Generate a random-based UUID.  This method creates a  UUID  con‐
38              sisting  mostly  of random bits.  It requires that the operating
39              system have a high quality  random  number  generator,  such  as
40              /dev/random.
41
42       -t, --time
43              Generate a time-based UUID.  This method creates a UUID based on
44              the system clock plus the system's ethernet hardware address, if
45              present.
46
47       -h, --help
48              Display help text and exit.
49
50       -V, --version
51              Display version information and exit.
52
53       -m, --md5
54              Use MD5 as the hash algorithm.
55
56       -s, --sha1
57              Use SHA1 as the hash algorithm.
58
59       -n, --namespace namespace
60              Generate  the  hash  with the namespace prefix. The namespace is
61              UUID,  or  '@ns'  where  "ns"  is  well-known  predefined   UUID
62              addressed by namespace name (see above).
63
64       -N, --name name
65              Generate the hash of the name.
66
67       -x, --hex
68              Interpret name name as a hexadecimal string.
69

CONFORMING TO

71       OSF DCE 1.1
72

EXAMPLES

74       uuidgen --sha1 --namespace @dns --name "www.example.com"
75

AUTHOR

77       uuidgen was written by Andreas Dilger for libuuid.
78

SEE ALSO

80       libuuid(3), RFC 4122
81

AVAILABILITY

83       The  uuidgen command is part of the util-linux package and is available
84       from https://www.kernel.org/pub/linux/utils/util-linux/.
85
86
87
88util-linux                         June 2011                        UUIDGEN(1)
Impressum