What command always generates the same UUID through /proc/sys/kernel

procuuid

Running the following command generates different random output on each execution (which is expected, considering that random is in the path):

cat /proc/sys/kernel/random/uuid

Is there any way to modify the path so that it results in a static (not random) UUID on each call (return the same thing on each request/execution instead of being random)?

Best Answer

You asked

Is there any way to modify the path so that it results in a static (not random) UUID on each call

And the answer to this is "yes, definitely".

If you prepare the environment like this:

cat /proc/sys/kernel/random/uuid >/tmp/uuid

You can modify the path to get a static UUID on each call, like this

cat /tmp/uuid
Related Question