Generating globally unique values on Linux

I may expand this later. . . .

Query the file /proc/sys/kernel/random/uuid for a globally unique value. It produces a new value on each read. For a globally unique value that’s persistent between machine startup, query /proc/sys/kernel/random/boot_id.

[earth:/]120 % cat /proc/sys/kernel/random/uuid

[earth:/]121 % cat /proc/sys/kernel/random/uuid

[earth:/]122 % cat /proc/sys/kernel/random/boot_id

[earth:/]123 % cat /proc/sys/kernel/random/boot_id
This entry was posted in Computing. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>