Linux Command - uuidgen

uuidgen - create a new UUID value

The UUID is printed to standard output as a hyphen-punctuated ASCII string of the form: EEF45689-BBE5-4FB6-9E80-41B78F6578E2 (in printf(3) format “%08X-%04X-%04X-%04X-%012X”), unless the -hdr option is given, in which case a fragment of source code is output.

The length of a UUID (Universally Unique Identifier) generated by uuidgen is 36 characters. A UUID is typically represented as a 32-character hexadecimal number, separated by hyphens into five groups

It looks like this:

1
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

Here, each ‘x’ represents a hexadecimal digit(0-9 or a-f). The hyphens are included for readability and are not part of the hexadecimal value. The total length, including hyphens, is 36 characters.

Syntax

1
uuid [OPTION]

Options

Option Description
-h, –help Display help and exit

Example

Generate a random-based UUID

1
uuidgen

sample output

1
72FFB2C4-78F0-49B6-82B9-3F807C994FFD