uuid_get command
Purpose
Generates Universal Unique Identifiers (UUIDs).
Syntax
uuid_get [ -n count ] [ -o outfile ] [ -c ]
Description
The uuid_get command generates UUIDs. By default, the uuid_get command generates a hexa-string representation of a UUID. You can use the uuid_get command along with the -c option to generate source-code representation of UUIDs.
Flags
- -n count
- Generates number of UUIDs that is specified in the count parameter. The value of the count parameter must be greater than zero.
- -o outfile
- Redirects the generated UUID to an output file that is specified by using the outfile parameter.
- -c
- Generates a C programming source-code representation of a UUID.
Examples
- To generate a hexa-string representation of a UUID, enter the following command:
An output similar to the following example is displayed:#uuid_get
6ae84954-9ef6-11e6-8003-3a0ea8d2f402
- To generate a C programming source-code representation of a UUID, enter the following command:
An output similar to the following example is displayed:#uuid_get -c
{ 0xd966286a, 0x9ef6, 0x11e6, 0x8004, {0x3a, 0x0e, 0xa8, 0xd2, 0xf4, 0x02} };
- To generate 5 UUIDs by using a single command, enter the following
command:
An output similar to the following example is displayed:# ./uuid_gen -n 5
ba4dae20-f6d7-11e5-8007-3a0ea8d2f402 ba4daf56-f6d7-11e5-8007-3a0ea8d2f402 ba4dafe2-f6d7-11e5-8007-3a0ea8d2f402 ba4db06e-f6d7-11e5-8007-3a0ea8d2f402 ba4db0fa-f6d7-11e5-8007-3a0ea8d2f402