← 返回命令列表

Linux command

genid 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Generate random ID

genid

Generate UUID

genid --uuid

Generate specific length

genid -l [32]

Alphanumeric only

genid --alphanumeric

说明

genid generates random identifiers suitable for various purposes. It produces unique strings for use as IDs, tokens, or keys. The tool supports multiple formats including UUID, alphanumeric strings, and custom lengths. Output is cryptographically suitable for non-security-critical uses. genid provides quick random identifier generation from the command line.

参数

-l _LENGTH_
ID length.
--uuid
Generate UUID format.
--alphanumeric
Use only letters and numbers.
--hex
Hexadecimal output.
--help
Display help information.

FAQ

What is the genid command used for?

genid generates random identifiers suitable for various purposes. It produces unique strings for use as IDs, tokens, or keys. The tool supports multiple formats including UUID, alphanumeric strings, and custom lengths. Output is cryptographically suitable for non-security-critical uses. genid provides quick random identifier generation from the command line.

How do I run a basic genid example?

Run `genid` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -l _LENGTH_ do in genid?

ID length.