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.
ed57f299-1fb3-4f36-b50a-3720044cfeeb
curl https://getuuid.sh/api/uuid