blob: 9c0e4f1a16cbfcb39b3c6c3db13c9c031b68f147 [file] [log] [blame]
Theodore Ts'o5d45d801999-03-16 19:35:19 +00001.\" 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
Theodore Ts'ob19d1a91999-06-18 00:32:03 +00008.TH UUIDGEN 1 "@E2FSPROGS_MONTH@ @E2FSPROGS_YEAR@" "E2fsprogs version @E2FSPROGS_VERSION@"
Theodore Ts'o5d45d801999-03-16 19:35:19 +00009.SH NAME
Theodore Ts'ob19d1a91999-06-18 00:32:03 +000010uuidgen \- command\-line utility to create a new UUID value
Theodore Ts'o5d45d801999-03-16 19:35:19 +000011.SH SYNOPSIS
Theodore Ts'o5dbb0721999-07-03 06:16:06 +000012.B uuidgen
13[
14.B -r
15] [
16.B -t
17]
Theodore Ts'o5d45d801999-03-16 19:35:19 +000018.SH DESCRIPTION
19The
20.B uuidgen
Theodore Ts'ob19d1a91999-06-18 00:32:03 +000021program creates a new universally unique identifier (UUID) using the
Theodore Ts'o5dbb0721999-07-03 06:16:06 +000022.BR libuuid (3)
23library. The new UUID can reasonably be considered unique among
24all UUIDs created on the local system,
25and among UUIDs created on other systems in the past
Theodore Ts'o5d45d801999-03-16 19:35:19 +000026and in the future.
Theodore Ts'o5dbb0721999-07-03 06:16:06 +000027.PP
28There are two types of UUID's which
29.B uuidgen
30can generate: time-based UUID's and random-based UUID's. By
31default
32.B uuidgen
33will generatea random-based UUID if a high-quality random number
34generator is present. Otherwise, it will chose a time-based UUID. It
35is possible to force the generation of one of these two
36UUID types by using the
37.IR -r " or " -t " options."
38.SH "OPTIONS"
39.TP
40.I -r
41Generate a random-based UUID. This method creates a UUID consisting mostly
42of random bits. It requires that the operating system have a high
43quality random number generator, such as /dev/random.
44.TP
45.I -t
46Generate a time-based UUID. This method creates a UUID based on the system
47clock plus the system's ethernet hardware address, if present.
Theodore Ts'o5d45d801999-03-16 19:35:19 +000048.SH RETURN VALUE
49The UUID of the form 1b4e28ba\-2fa1\-11d2\-883f\-b9a761bde3fb (in
50.BR printf (3)
51format "%08x\-%04x\-%04x\-%04x\-%012x") is output to the standard output.
52.SH "CONFORMING TO"
53OSF DCE 1.1
54.SH AUTHOR
55.B uuidgen
56was written by Andreas Dilger for libuuid.
57.SH AVAILABILITY
58.B uuidgen
59is part of libuuid from the e2fsprogs package and is available for anonymous
60ftp from tsx\-11.mit.edu (and its mirrors) in /pub/linux/packages/ext2fs.
61.SH "SEE ALSO"
62.BR libuuid (3)