49ea69687f0020a6f8d2d6c679b2aa68a2589893
[dragonfly.git] / usr.bin / uuidgen / uuidgen.1
1 .\" Copyright (c) 2002 Marcel Moolenaar
2 .\" All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
7 .\"
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\"    notice, this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\"    notice, this list of conditions and the following disclaimer in the
12 .\"    documentation and/or other materials provided with the distribution.
13 .\"
14 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
15 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
16 .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17 .\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
18 .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19 .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20 .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21 .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 .\"
25 .\" $FreeBSD: src/usr.bin/uuidgen/uuidgen.1,v 1.7 2005/09/07 07:49:21 rse Exp $
26 .\" $DragonFly: src/usr.bin/uuidgen/uuidgen.1,v 1.1 2007/06/17 05:03:23 dillon Exp $
27 .\"
28 .Dd September 7, 2005
29 .Dt UUIDGEN 1
30 .Os
31 .Sh NAME
32 .Nm uuidgen
33 .Nd generate universally unique identifiers
34 .Sh SYNOPSIS
35 .Nm
36 .Op Fl 1
37 .Op Fl n Ar count
38 .Op Fl o Ar filename
39 .Sh DESCRIPTION
40 The
41 .Nm
42 utility by default generates a single DCE version 1
43 universally unique identifier (UUID),
44 also known as a globally unique identifier (GUID).
45 The UUID is written to stdout by default.
46 The following options can be used to change the behaviour of
47 .Nm :
48 .Bl -tag -width indent
49 .It Fl 1
50 This option only has effect if multiple identifiers are to be generated and
51 instructs
52 .Nm
53 to not generate them in batch, but one at a time.
54 .It Fl n
55 This option controls the number of identifiers generated.
56 By default, multiple
57 identifiers are generated in batch.
58 .It Fl o
59 Redirect output to
60 .Ar filename
61 instead of stdout.
62 .El
63 .Pp
64 Batched generation yields a dense set of identifiers in such a way that there
65 is no identifier that is larger than the smallest identifier in the set and
66 smaller than the largest identifier in the set and that is not already in the
67 set.
68 .Pp
69 When generating the identifiers one at a time, the identifiers will be close
70 to each other, but operating system latency and processing time will be
71 reflected in the distance between two successive identifiers.
72 .Sh EXIT STATUS
73 .Ex -std
74 .Sh SEE ALSO
75 .Xr uuidgen 2 ,
76 .Xr uuid 3
77 .Sh HISTORY
78 The
79 .Nm
80 command first appeared in
81 .Fx 5.0 .