Upload Tizen:Base source
[framework/base/util-linux-ng.git] / misc-utils / uuidgen.1
1 .\" Copyright 1999 Andreas Dilger (adilger@enel.ucalgary.ca)
2 .\"
3 .\" This man page was created for libuuid.so.1.1 from e2fsprogs-1.14.
4 .\"
5 .\" This file may be copied under the terms of the GNU Public License.
6 .\"
7 .\" Created  Wed Mar 10 17:42:12 1999, Andreas Dilger
8 .TH UUIDGEN 1 "May 2009" "Linux"
9 .SH NAME
10 uuidgen \- command\-line utility to create a new UUID value
11 .SH SYNOPSIS
12 .B uuidgen
13 .RB [ \-r | \-t ]
14 .SH DESCRIPTION
15 The
16 .B uuidgen
17 program creates (and prints)
18 a new universally unique identifier (UUID) using the
19 .BR libuuid (3)
20 library.  The new UUID can reasonably be considered unique among
21 all UUIDs created on the local system,
22 and among UUIDs created on other systems in the past
23 and in the future.
24 .PP
25 There are two types of UUID's which
26 .B uuidgen
27 can generate: time-based UUID's and random-based UUID's.  By
28 default
29 .B uuidgen
30 will generate a random-based UUID if a high-quality random number
31 generator is present.  Otherwise, it will chose a time-based UUID.  It
32 is possible to force the generation of one of these two
33 UUID types by using the
34 .B \-r
35 or
36 .B \-t
37 options.
38 .SH OPTIONS
39 .TP
40 .B \-r
41 Generate a random-based UUID.  This method creates a UUID consisting mostly
42 of random bits.  It requires that the operating system have a high
43 quality random number generator, such as
44 .IR /dev/random .
45 .TP
46 .B \-t
47 Generate a time-based UUID.  This method creates a UUID based on the system
48 clock plus the system's ethernet hardware address, if present.
49 .SH "CONFORMING TO"
50 OSF DCE 1.1
51 .SH AUTHOR
52 .B uuidgen
53 was written by Andreas Dilger for libuuid.
54 .SH AVAILABILITY
55 The uuidgen command is part of the util-linux-ng package and is available from
56 ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/.
57 .SH "SEE ALSO"
58 .BR libuuid (3)