Linux "uuidgen" Command Line Options and Examples
create a new UUID value

The uuidgen program creates (and prints) a new universally unique identifier (UUID) using the libuuid(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.


Usage:

uuidgen [options]




Command Line Options:

-r
Generate a random-based UUID. This method creates a UUID consisting mostly of random bits. Itrequires that the operating system have a high quality random number generator, such as /dev/random.
uuidgen -r ...
-t
Generate a time-based UUID. This method creates a UUID based on the system clock plus the system'sethernet hardware address, if present.
uuidgen -t ...
-h
Display help text and exit.
uuidgen -h ...
-V
Display version information and exit.
uuidgen -V ...
-m
Use MD5 as the hash algorithm.
uuidgen -m ...
-s
Use SHA1 as the hash algorith.
uuidgen -s ...
-n
Generate the hash with the namespace prefix. The namespace is UUID, or '@ns' where "ns" is well-knownpredefined UUID addressed by namespace name (see above).
uuidgen -n ...
-N
Generate the hash of the name.
uuidgen -N ...
-x
Interpret name name as a hexidecimal string.CONFORMING TOOSF DCE 1.1EXAMPLESuuidgen --sha1 --namespace @dns --name "www.example.com"AUTHORuuidgen was written by Andreas Dilger for libuuid.
uuidgen -x ...