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)?
uuid (Universal Unique IDentifier)
is meant to be unique among system's generated uuid's as well as global known uuid's. If you want to refer to the same uuid you generate, just usemystaticuuid=$(uuidgen)
and then call it usingecho "$mystaticuuid"