man-pages/man1/uuidgen.1.html
2021-03-31 01:06:50 +01:00

177 lines
4.4 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of UUIDGEN</TITLE>
</HEAD><BODY>
<H1>UUIDGEN</H1>
Section: User Commands (1)<BR>Updated: June 2011<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
uuidgen - create a new UUID value
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B>uuidgen</B>
[options]
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
The
<B>uuidgen</B>
program creates (and prints)
a new universally unique identifier (UUID) using the
<B><A HREF="/cgi-bin/man/man2html?3+libuuid">libuuid</A></B>(3)
library. The new UUID can reasonably be considered unique among
all UUIDs created on the local system,
and among UUIDs created on other systems in the past
and in the future.
<P>
There are three types of UUIDs which
<B>uuidgen</B>
can generate: time-based UUIDs, random-based UUIDs, and hash-based UUIDs.
By default
<B>uuidgen</B>
will generate a random-based UUID if a high-quality random number
generator is present. Otherwise, it will choose a time-based UUID.
It is possible to force the generation of one of these first two
UUID types by using the
<B>--random</B>
or
<B>--time</B>
options.
<P>
The third type of UUID is generated with the
<B>--md5</B>
or
<B>--sha1</B>
options, followed by
<B>--namespace</B> <I>namespace</I>
and
<B>--name</B> <I>name</I>.
The <I>namespace</I> may either be a well-known UUID, or else
an alias to one of the well-known UUIDs defined in RFC 4122, that is
<B>@dns</B>,
<B>@url</B>,
<B>@oid</B>,
or
<B>@x500</B>.
The <I>name</I> is an arbitrary string value. The generated UUID is the
digest of the concatenation of the namespace UUID and the name value, hashed
with the MD5 or SHA1 algorithms. It is, therefore, a predictable value
which may be useful when UUIDs are being used as handles or nonces for
more complex values or values which shouldn't be disclosed directly.
See the RFC for more information.
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>
<DL COMPACT>
<DT id="1"><B>-r</B>,<B> --random</B>
<DD>
Generate a random-based UUID. This method creates a UUID consisting mostly
of random bits. It requires that the operating system have a high
quality random number generator, such as
<I>/dev/random</I>.
<DT id="2"><B>-t</B>,<B> --time</B>
<DD>
Generate a time-based UUID. This method creates a UUID based on the system
clock plus the system's ethernet hardware address, if present.
<DT id="3"><B>-h</B>,<B> --help</B>
<DD>
Display help text and exit.
<DT id="4"><B>-V</B>,<B> --version</B>
<DD>
Display version information and exit.
<DT id="5"><B>-m</B>,<B> --md5</B>
<DD>
Use MD5 as the hash algorithm.
<DT id="6"><B>-s</B>,<B> --sha1</B>
<DD>
Use SHA1 as the hash algorithm.
<DT id="7"><B>-n</B>,<B> --namespace </B><I>namespace</I>
<DD>
Generate the hash with the <I>namespace</I> prefix. The <I>namespace</I> is UUID,
or '@ns' where &quot;ns&quot; is well-known predefined UUID addressed by namespace name
(see above).
<DT id="8"><B>-N</B>,<B> --name </B><I>name</I>
<DD>
Generate the hash of the <I>name</I>.
<DT id="9"><B>-x</B>,<B> --hex</B>
<DD>
Interpret name <I>name</I> as a hexadecimal string.
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>CONFORMING TO</H2>
OSF DCE 1.1
<A NAME="lbAG">&nbsp;</A>
<H2>EXAMPLES</H2>
uuidgen --sha1 --namespace @dns --name &quot;<A HREF="http://www.example.com">www.example.com</A>&quot;
<A NAME="lbAH">&nbsp;</A>
<H2>AUTHOR</H2>
<B>uuidgen</B>
was written by Andreas Dilger for libuuid.
<A NAME="lbAI">&nbsp;</A>
<H2>SEE ALSO</H2>
<B><A HREF="/cgi-bin/man/man2html?3+libuuid">libuuid</A></B>(3),
<B>RFC 4122</B>
<A NAME="lbAJ">&nbsp;</A>
<H2>AVAILABILITY</H2>
The uuidgen command is part of the util-linux package and is available from
<A HREF="https://www.kernel.org/pub/linux/utils/util-linux/.">https://www.kernel.org/pub/linux/utils/util-linux/.</A>
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="10"><A HREF="#lbAB">NAME</A><DD>
<DT id="11"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="12"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="13"><A HREF="#lbAE">OPTIONS</A><DD>
<DT id="14"><A HREF="#lbAF">CONFORMING TO</A><DD>
<DT id="15"><A HREF="#lbAG">EXAMPLES</A><DD>
<DT id="16"><A HREF="#lbAH">AUTHOR</A><DD>
<DT id="17"><A HREF="#lbAI">SEE ALSO</A><DD>
<DT id="18"><A HREF="#lbAJ">AVAILABILITY</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:29 GMT, March 31, 2021
</BODY>
</HTML>