Linux command
uuid 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
uuid
uuid
说明
uuid generates and decodes Universally Unique Identifiers. It supports multiple UUID versions: v1 (time-based), v3 (MD5 hash), v4 (random), and v5 (SHA-1 hash). UUIDs are 128-bit identifiers used for uniquely identifying information across distributed systems.
参数
- -v _VERSION_
- UUID version (1, 3, 4, or 5)
- -n _COUNT_
- Generate multiple UUIDs
- -F _FORMAT_
- Output format (BIN, STR, or SIV)
- -o _FILE_
- Write output to file
- ns: _NAMESPACE_
- Namespace prefix for v3/v5
- -d
- Decode UUID
FAQ
What is the uuid command used for?
uuid generates and decodes Universally Unique Identifiers. It supports multiple UUID versions: v1 (time-based), v3 (MD5 hash), v4 (random), and v5 (SHA-1 hash). UUIDs are 128-bit identifiers used for uniquely identifying information across distributed systems.
How do I run a basic uuid example?
Run `uuid` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -v _VERSION_ do in uuid?
UUID version (1, 3, 4, or 5)