-
Notifications
You must be signed in to change notification settings - Fork 1
UUID
Vali (naser) Rafinia edited this page Mar 27, 2023
·
8 revisions
The uuid
sub-command of nHash generates Universally Unique Identifiers (UUIDs) with versions 1 to 5. UUIDs are commonly used as identifiers in computer systems and are designed to be unique across both space and time.
To use the uuid
sub-command, type the following command in the terminal:
nhash uuid [options]
The uuid
sub-command supports the following options:
-
--bracket
: Generates UUIDs with brackets. -
--no-hyphen
: Generates UUIDs without hyphens. -
-v, --version <All|V1|V2|V3|V4|V5>
: Selects UUID version. By default,all
versions are generated. -
-o, --output <output>
: Specifies the file name to write output to. -
-?, -h, --help
: Displays help and usage information.
Generate a version 1 UUID with hyphens:
nhash uuid -v V1
Generate a version 4 UUID without hyphens:
nhash uuid --version V4 --no-hyphen
Generate all versions of UUIDs with brackets and save the output to a file named "uuid.txt":
nhash uuid --bracket --output uuid.txt
- Use the
--help
option with any command to view help information specific to that command. - Output from any command can be saved to a file using the --output option.