UUIDGEN(1)
๐ NAME ๐
uuidgen โ bestie, it makes you a brand new UUID value. periodt.
โจ SYNOPSIS โจ
uuidgen [options]
๐ฆ DESCRIPTION ๐ฆ
So like, the uuidgen program creates (and prints) a shiny new universally unique identifier (UUID) using the libuuid(3) library. And the way this 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?? iconic behavior honestly.
There are three types of UUIDs which uuidgen can generate:
- time-based UUIDs
- random-based UUIDs
- hash-based UUIDs
By default uuidgen will generate a random-based UUID if a high-quality random number generator is present. Otherwise, it will choose a time-based UUID. And you can force the generation of one of these first two UUID types by using the --random or --time options. no cap.
The third type of UUID is generated with the --md5 or --sha1 options, followed by --namespace namespace and --name name. The namespace may either be a well-known UUID, or else an alias to one of the well-known UUIDs defined in RFC 4122, that is @dns, @url, @oid, or @x500. The name 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. iykyk ๐
๐ OPTIONS ๐
-r,--randomโ Generate a random-based UUID. This method creates a UUID consisting <em>mostly</em> of random bits. It requires that the operating system has a high quality random number generator, such as/dev/random. ๐ฅ-t,--timeโ Generate a time-based UUID. This method creates a UUID based on the system clock plus the system's ethernet hardware address, if present.-m,--md5โ Use MD5 as the hash algorithm.-s,--sha1โ Use SHA1 as the hash algorithm.-6,--time-v6โ Generate a time-based UUID. This method creates a UUID based on the system clock and is lexicographically sortable according to the contained timestamp. obsessed.-7,--time-v7โ Generate a time-based UUID. This method creates a UUID based on the system clock and is lexicographically sortable according to the contained timestamp. yes, same energy as-6, they're both serving sortable.-n,--namespacenamespace โ Generate the hash with the namespace prefix. The namespace is UUID, or'@ns'where"ns"is well-known predefined UUID addressed by namespace name (see above).-N,--namename โ Generate the hash of the name.-C,--countnum โ Generate multiple UUIDs using the enhanced capability of thelibuuidto cache time-based UUIDs, thus resulting in improved performance. However, this holds no significance for other UUID types. ๐-x,--hexโ Interpret name name as a hexadecimal string.-h,--helpโ Display help text and exit.-V,--versionโ Display version and exit.
๐ CONFORMING TO ๐
OSF DCE 1.1
โญ EXAMPLES โญ
uuidgen --sha1 --namespace @dns --name "www.example.com"
๐ AUTHORS ๐
uuidgen was written by Andreas Dilger for libuuid(3). slay, Andreas. ๐ซถ
๐ธ SEE ALSO ๐ธ
uuidparse(1)libuuid(3)- RFC 4122 <https://tools.ietf.org/html/rfc4122>
- RFC XXXX <https://tools.ietf.org/html/rfcXXXX>
๐ REPORTING BUGS ๐
For bug reports, use the issue tracker <https://github.com/util-linux/util-linux/issues>. bestie if it's broken, tell them, don't just suffer in silence ๐ญ
๐ง AVAILABILITY ๐ง
The uuidgen command is part of the util-linux package which can be downloaded from Linux Kernel Archive <https://www.kernel.org/pub/linux/utils/util-linux/>.
okay so that's the whole thing ๐ go forth and generate some UUIDs, you absolute main character โจ
util-linux 2.42.4 ๐ธ 2026-09-21 ๐ UUIDGEN(1) ๐
๐ฆ where this page comes from
- arch rolling: util-linux 2.42.4-1 ยท BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause-UC AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ISC AND LGPL-2.1-or-later AND LicenseRef-PublicDomain
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms