LinuxCommandLibrary

genid

Generate unique identifiers (UUIDs) for resources

TLDR

Generate a UUIDv4

$ genid uuid
copy


Generate a UUIDv5 using a namespace UUID and a specific name
$ genid uuidv5 [{ce598faa-8dd0-49ee-8525-9e24fff71dca]} [name]
copy


Generate a Discord Snowflake, without a trailing newline (useful in shell scripts)
$ genid --script snowflake
copy


Generate a Generic Anonymous ID with a specific "real ID"
$ genid gaid [real_id]
copy


Generate a Snowflake with the epoch set to a specific date
$ genid snowflake --epoch=[unix_epoch_time]
copy

SYNOPSIS

genid [OPTIONS] [ARGUMENTS]

DESCRIPTION

The genid command does not appear in standard Linux distributions (e.g., Ubuntu, Fedora, Debian, Arch) or core utilities like util-linux, coreutils, or procps-ng. No man page (man genid) or info documentation exists. It may be a custom script, part of niche software (e.g., container tools, custom ID generators), a kernel-internal feature misidentified as a command, or a misspelling of uuidgen (UUID generator) or similar. Check local installation with which genid or locate genid. If present, it likely generates unique identifiers for processes, namespaces, or systems, but usage is unspecified without source.

CAVEATS

Not found in standard repositories; may require specific package installation or indicate error. Avoid assuming functionality without documentation.
Potential security risk if from untrusted source.

ALTERNATIVES

Use uuidgen for RFC 4122 UUIDs: uuidgen -r (random).
id for user/group IDs: id -u (UID).
seq for numeric sequences.

DETECTION

Search packages: apt search genid (Debian/Ubuntu), dnf search genid (Fedora), or pacman -Ss genid (Arch).
Kernel context: Check cgroup/namespace files like /proc/[pid]/ns.

HISTORY

No documented history; absent from Linux command lineage since early kernels. Possibly project-specific or deprecated.

SEE ALSO

Copied to clipboard