Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 371 Bytes

generate-uuid.md

File metadata and controls

14 lines (11 loc) · 371 Bytes

Generate an UUID (2016-02-12)

It's as easy as running uuidgen:

uuid=$(uuidgen)
echo $uuid

It's part of uuid-runtime on Debian. On OS X, it seems to be built-in.

If uuidgen is not available for some reason, the same can be achieved with Python:

python  -c 'import uuid; print uuid.uuid1()'