LinuxCommandLibrary

uuid

Generate universally unique identifiers

TLDR

TLDR

Generate UUIDv1

$ uuid
copy
Generate UUIDv4
$ uuid -v 4
copy
Generate multiple UUIDs
$ uuid -v 4 -n [number_of_uuids]
copy
Specify output format
$ uuid -v 4 -F [BIN|STR|SIV]
copy
Write to file
$ uuid -v 4 -o [path/to/file]
copy
Generate UUIDv5 with namespace
$ uuid -v 5 ns:[DNS|URL|OID|X500] [object_name]
copy
Decode UUID
$ uuid -d [uuid]
copy

SYNOPSIS

uuid [OPTIONS]

DESCRIPTION

uuid generates and decodes Universally Unique Identifiers. It supports multiple UUID versions: v1 (time-based), v3 (MD5 hash), v4 (random), and v5 (SHA-1 hash).
UUIDs are 128-bit identifiers used for uniquely identifying information across distributed systems.

PARAMETERS

-v VERSION

UUID version (1, 3, 4, or 5)
-n COUNT
Generate multiple UUIDs
-F FORMAT
Output format (BIN, STR, or SIV)
-o FILE
Write output to file
ns: NAMESPACE
Namespace prefix for v3/v5
-d
Decode UUID

CAVEATS

UUIDv1 may expose system information. UUIDv4 requires good random source. Namespace UUIDs require object name specification.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community