In code
Generate a UUID in Bash
The uuidgen command ships on most Unix systems; Linux also exposes a UUID via the kernel.
Bash example
Bash
uuidgen
# Linux box without uuidgen:
cat /proc/sys/kernel/random/uuid
No install? Use the tool or API
Here's a fresh version 4 UUID generated right now — copy it, or call the API from any language.
98c11b1c-acfa-4305-a7d2-78901d186582
curl https://getuuid.sh/api/uuid