Whamcloud - gitweb
ChangeLog, chattr.1.in, lsattr.1.in, uuidgen.1.in:
[tools/e2fsprogs.git] / misc / uuidgen.1.in
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 "@E2FSPROGS_MONTH@ @E2FSPROGS_YEAR@" "E2fsprogs version @E2FSPROGS_VERSION@"
9 .SH NAME
10 uuidgen \- command\-line utility to create a new UUID value
11 .SH SYNOPSIS
12 .B uuidgen 
13 [
14 .B \-r
15 |
16 .B \-t
17 ]
18 .SH DESCRIPTION
19 The
20 .B uuidgen
21 program creates a new universally unique identifier (UUID) using the
22 .BR libuuid (3)
23 library.  The new UUID can reasonably be considered unique among 
24 all UUIDs created on the local system, 
25 and among UUIDs created on other systems in the past
26 and in the future.
27 .PP
28 There are two types of UUID's which 
29 .B uuidgen
30 can generate: time-based UUID's and random-based UUID's.  By 
31 default 
32 .B uuidgen
33 will generate a random-based UUID if a high-quality random number
34 generator is present.  Otherwise, it will chose a time-based UUID.  It 
35 is possible to force the generation of one of these two 
36 UUID types by using the
37 .B \-r
38 or
39 .B \-t
40 options.
41 .SH OPTIONS
42 .TP
43 .B \-r
44 Generate a random-based UUID.  This method creates a UUID consisting mostly
45 of random bits.  It requires that the operating system have a high
46 quality random number generator, such as
47 .IR /dev/random .
48 .TP
49 .B \-t
50 Generate a time-based UUID.  This method creates a UUID based on the system 
51 clock plus the system's ethernet hardware address, if present.
52 .SH RETURN VALUE
53 The UUID of the form 1b4e28ba-2fa1-11d2-883f-b9a761bde3fb (in
54 .BR printf (3)
55 format "%08x-%04x-%04x-%04x-%012x") is output to the standard output.
56 .SH "CONFORMING TO"
57 OSF DCE 1.1
58 .SH AUTHOR
59 .B uuidgen
60 was written by Andreas Dilger for libuuid.
61 .SH AVAILABILITY
62 .B uuidgen
63 is part of libuuid from the e2fsprogs package and is available from
64 http://e2fsprogs.sourceforge.net.
65 .SH "SEE ALSO"
66 .BR libuuid (3)