1*f70e00b3Swiz.\" $NetBSD: uuidgen.1,v 1.2 2004/09/13 23:44:04 wiz Exp $ 21209149aSthorpej.\" 31209149aSthorpej.\" Copyright (c) 2002 Marcel Moolenaar 41209149aSthorpej.\" All rights reserved. 51209149aSthorpej.\" 61209149aSthorpej.\" Redistribution and use in source and binary forms, with or without 71209149aSthorpej.\" modification, are permitted provided that the following conditions 81209149aSthorpej.\" are met: 91209149aSthorpej.\" 101209149aSthorpej.\" 1. Redistributions of source code must retain the above copyright 111209149aSthorpej.\" notice, this list of conditions and the following disclaimer. 121209149aSthorpej.\" 2. Redistributions in binary form must reproduce the above copyright 131209149aSthorpej.\" notice, this list of conditions and the following disclaimer in the 141209149aSthorpej.\" documentation and/or other materials provided with the distribution. 151209149aSthorpej.\" 161209149aSthorpej.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 171209149aSthorpej.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 181209149aSthorpej.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 191209149aSthorpej.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 201209149aSthorpej.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 211209149aSthorpej.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 221209149aSthorpej.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 231209149aSthorpej.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 241209149aSthorpej.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 251209149aSthorpej.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 261209149aSthorpej.\" 271209149aSthorpej.\" $FreeBSD: src/usr.bin/uuidgen/uuidgen.1,v 1.5 2003/05/22 13:10:32 ru Exp $ 281209149aSthorpej.\" 291209149aSthorpej.Dd September 13, 2004 301209149aSthorpej.Dt UUIDGEN 1 311209149aSthorpej.Os 321209149aSthorpej.Sh NAME 331209149aSthorpej.Nm uuidgen 341209149aSthorpej.Nd generate universally unique identifiers 351209149aSthorpej.Sh SYNOPSIS 361209149aSthorpej.Nm 37*f70e00b3Swiz.Op Fl 1s 381209149aSthorpej.Op Fl n Ar count 391209149aSthorpej.Op Fl o Ar filename 401209149aSthorpej.Sh DESCRIPTION 411209149aSthorpejThe 421209149aSthorpej.Nm 431209149aSthorpejutility by default generates a single universally unique identifier (UUID), 441209149aSthorpejalso known as a globally unique identifier (GUID). 451209149aSthorpejBy default, 461209149aSthorpej.Nm 471209149aSthorpejgenerates a single UUID and outputs it in the standard string representation 481209149aSthorpejto stdout. 491209149aSthorpejThe following options can be used to change the behavior of 501209149aSthorpej.Nm : 51*f70e00b3Swiz.Bl -tag -offset indent -width XoXfilenameXX 521209149aSthorpej.It Fl 1 531209149aSthorpejThis option only has effect if multiple identifiers are to be generated and 541209149aSthorpejinstructs 551209149aSthorpej.Nm 561209149aSthorpejto not generate them in batch, but one at a time. 57*f70e00b3Swiz.It Fl n Ar count 581209149aSthorpejThis option controls the number of identifiers generated. 59*f70e00b3SwizBy default, multiple identifiers are generated in batch. 60*f70e00b3Swiz.It Fl o Ar filename 611209149aSthorpejRedirect output to 621209149aSthorpej.Ar filename 631209149aSthorpejinstead of stdout. 64*f70e00b3Swiz.It Fl s 651209149aSthorpejOutput UUIDs as initialized C structures, rather than in the standard 661209149aSthorpejstring format. 671209149aSthorpej.El 681209149aSthorpej.Pp 691209149aSthorpejBatched generation yields a dense set of identifiers in such a way that there 701209149aSthorpejis no identifier that is larger than the smallest identifier in the set and 711209149aSthorpejsmaller than the largest identifier in the set and that is not already in the 721209149aSthorpejset. 731209149aSthorpej.Pp 741209149aSthorpejWhen generating the identifiers one at a time, the identifiers will be close 751209149aSthorpejto each other, but operating system latency and processing time will be 761209149aSthorpejreflected in the distance between two successive identifiers. 771209149aSthorpej.Sh DIAGNOSTICS 781209149aSthorpej.Ex -std 791209149aSthorpej.Sh SEE ALSO 801209149aSthorpej.Xr uuidgen 2 , 811209149aSthorpej.Xr uuid 3 821209149aSthorpej.Sh HISTORY 831209149aSthorpejThe 841209149aSthorpej.Nm 851209149aSthorpejcommand first appeared in 861209149aSthorpej.Nx 3.0 . 87